I'm getting this really strange crash exception from jPCT-AE. I'm manually creating a bunch of Object3D's... and it all renders fine, unless I translate the Object3D z position <= -16.0f, in which case I get this exception:
07-15 12:09:49.709 423-454/com.xxxxxxxxxx I/jPCT-AE: Creating buffers...
07-15 12:09:49.710 423-454/com.xxxxxxxxxx E/jPCT-AE: [ 1468598989710 ] - ERROR: before: glError 1281
07-15 12:09:49.740 423-454/com.xxxxxxxxxx E/Surface: getSlotFromBufferLocked: unknown buffer: 0x7f8a22e180
07-15 12:09:49.752 423-454/com.xxxxxxxxxx E/AndroidRuntime: FATAL EXCEPTION: GLThread 10571
Process: com.redman.xxxxxxxxxx, PID: 423
java.lang.RuntimeException: [ 1468598989710 ] - ERROR: before: glError 1281
at com.threed.jpct.Logger.log(Logger.java:206)
at com.threed.jpct.GL20.checkError(GL20.java:159)
at com.threed.jpct.GL20.glGenBuffers(GL20.java:1375)
at com.threed.jpct.CompiledInstance.compileToVBO(CompiledInstance.java:1479)
at com.threed.jpct.CompiledInstance.render(CompiledInstance.java:607)
at com.threed.jpct.GLRenderer.drawVertexArray(GLRenderer.java:2442)
at com.threed.jpct.World.draw(World.java:1426)
at com.threed.jpct.World.draw(World.java:1109)
at com.xxxxxxxxxx.GameActivity$MyRenderer.onDrawFrame(GameActivity.java:199)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1535)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
Any idea? I've tried the current jPCT AE JAR and the beta. Both crash on this...