You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Launch SpriteMethodTest
2. Select OpenGL ES -> Use VBO Extension
What is the expected output? What do you see instead?
Expected sprite test to run, instead received the following in LogCat:
Uncaught handler: thread GLThread exiting due to uncaught exception
java.lang.IllegalArgumentException: remaining() < size
at com.google.android.gles_jni.GLImpl.glBufferData(Native Method)
at
com.android.spritemethodtest.Grid.generateHardwareBuffers(Grid.java:231)
at
com.android.spritemethodtest.SimpleGLRenderer.surfaceCreated(SimpleGLRender
er.java:192)
at
com.android.spritemethodtest.GLSurfaceView$GLThread.guardedRun(GLSurfaceVie
w.java:403)
at
com.android.spritemethodtest.GLSurfaceView$GLThread.run(GLSurfaceView.java:
337)
What version of the product are you using? On what operating system?
Running on Android Emulator
OS: Windows 7
Eclipse: 3.5.1 (Eclipse IDE for Java Developers Build id: 20090920-1017)
Android SDK: 2.0.1
Tested on 1.5, 1.6, 2.0 and 2.0.1 emulated devices
Original issue reported on code.google.com by jason.po...@gmail.com on 28 Dec 2009 at 9:00
The text was updated successfully, but these errors were encountered:
FYI:
Grid class uses:
final int vertexSize = mVertexBuffer.capacity() * Float.SIZE;
and
final int texCoordSize = mTexCoordBuffer.capacity() * Float.SIZE;
Should be:
final int vertexSize = mVertexBuffer.capacity() * 4;
and
final int texCoordSize = mTexCoordBuffer.capacity() * 4;
Float.SIZE resolves to 32
Original comment by jason.po...@gmail.com on 28 Dec 2009 at 9:16
Original issue reported on code.google.com by
jason.po...@gmail.com
on 28 Dec 2009 at 9:00The text was updated successfully, but these errors were encountered: