OSDN Git Service

[fixed] small bug in Mesh. When VertexDataType.VertexArray is specified in the constr...
authorbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Fri, 10 Dec 2010 05:43:50 +0000 (05:43 +0000)
committerbadlogicgames <badlogicgames@6c4fd544-2939-11df-bb46-9574ba5d0bfa>
Fri, 10 Dec 2010 05:43:50 +0000 (05:43 +0000)
commitfe7c9e945333cb95014b3a3ff243680938a866ef
tree8bbffc617ae89aaa341dd0f621f82b41c1bafdc7
parenta37a868491ae28a3748458b896fd6e5f0e7d0898
[fixed] small bug in Mesh. When VertexDataType.VertexArray is specified in the constructor and OpenGL ES 2.0 is used (as it may be the case in SpriteBatch) Mesh.bind(ShaderProgram program) will explode as it assumes that VBOs are used. Fixed temporarily by forcing VBOs in case of OpenGL ES 2.0.
gdx/src/com/badlogic/gdx/graphics/Mesh.java