nicolasgramlich/AndEngine — Issue #31: ShaderProgramException
Author: sjvc
Created: 2012-02-05 10:44:03+00:00
State: open

Someone sent me that error report of my game:

org.andengine.opengl.shader.exception.ShaderProgramException: Unexpected uniform: 'u_modelViewProjectionMatrix'.
at org.andengine.opengl.shader.ShaderProgram.getUniformLocation(ShaderProgram.java:99)
at org.andengine.opengl.shader.PositionColorTextureCoordinatesShaderProgram.link(PositionColorTextureCoordinatesShaderProgram.java:83)
at org.andengine.opengl.shader.ShaderProgram.compile(ShaderProgram.java:149)
at org.andengine.opengl.shader.ShaderProgram.bind(ShaderProgram.java:122)
at org.andengine.opengl.shader.PositionColorTextureCoordinatesShaderProgram.bind(PositionColorTextureCoordinatesShaderProgram.java:89)
at org.andengine.opengl.vbo.VertexBufferObject.bind(VertexBufferObject.java:150)
at org.andengine.entity.sprite.Sprite.preDraw(Sprite.java:175)
at org.andengine.entity.Entity.onManagedDraw(Entity.java:1181)
at org.andengine.entity.shape.Shape.onManagedDraw(Shape.java:123)
at org.andengine.entity.Entity.onDraw(Entity.java:1009)
at org.andengine.entity.Entity.onManagedDrawChildren(Entity.java:1203)
at org.andengine.entity.Entity.onDrawChildren(Entity.java:1195)
at org.andengine.entity.Entity.onManagedDraw(Entity.java:1185)
at org.andengine.entity.scene.Scene.onManagedDraw(Scene.java:262)
at org.andengine.entity.Entity.onDraw(Entity.java:1009)
at org.andengine.entity.scene.Scene.onManagedDraw(Scene.java:269)
at org.andengine.entity.Entity.onDraw(Entity.java:1009)
at org.andengine.engine.Engine.onDrawScene(Engine.java:560)
at org.andengine.engine.Engine.onDrawFrame(Engine.java:552)
at org.andengine.opengl.view.EngineRenderer.onDrawFrame(EngineRenderer.java:104)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1363)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)