LWJGL Forum

Programming => OpenGL => Topic started by: gmseed on September 26, 2010, 10:39:39

Title: BufferChecks.checkDirect() IntBuffer is not direct
Post by: gmseed on September 26, 2010, 10:39:39
Hi

I'm trying to setup JBullet using LWJGL on a 64bit m/c and when running the BasicDemo on the JBullet API I get the exception:

Exception in thread "main" java.lang.IllegalArgumentException: IntBuffer is not direct
        at org.lwjgl.BufferChecks.checkDirect(BufferChecks.java:119)
        at org.lwjgl.opengl.GL11.glGenTextures(GL11.java:1373)
        at com.bulletphysics.demos.opengl.FontRender$GLFont.load(FontRender.java:124)
        at com.bulletphysics.demos.opengl.FontRender$GLFont.<init>(FontRender.java:68)
        at com.bulletphysics.demos.opengl.LwjglGL.init(LwjglGL.java:53)
        at com.bulletphysics.demos.opengl.LWJGL.main(LWJGL.java:60)
        at com.bulletphysics.demos.basic.BasicDemo.main(BasicDemo.java:228)

Has anyone else encountered this runtime error?

Thanks.

Graham
Title: Re: BufferChecks.checkDirect() IntBuffer is not direct
Post by: kappa on September 26, 2010, 14:46:54
As of LWJGL 2.3 support for indirect buffers has been dropped. You can only use direct buffers. In order to fix this either report this on the JBullet site so the code can be updated or use an older version of LWJGL.
Title: Re: BufferChecks.checkDirect() IntBuffer is not direct
Post by: gmseed on September 26, 2010, 16:43:20
Hi

Thanks for your prompt reply. I downloaded the older LWJGL-2.2.2 version for 64bit and the JBullet program now works.

I've suggested on the JBullet forum that it is upgraded.

Graham