LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: supagu on April 30, 2010, 11:19:38

Title: [Exception] Cannot use Buffers when Array Buffer Object is enabled
Post by: supagu on April 30, 2010, 11:19:38
i get the following exception:
'Cannot use Buffers when Array Buffer Object is enabled'

after I've rendered with a VBO, then go to try to render without VBO's.
How do i disable VBO's to revert back to normal rendering?
Title: Re: [Exception] Cannot use Buffers when Array Buffer Object is enabled
Post by: spasi on April 30, 2010, 11:48:38
You need to bind 0. Like: glBindBuffer(GL_ARRAY_BUFFER, 0).
Title: Re: [Exception] Cannot use Buffers when Array Buffer Object is enabled
Post by: supagu on May 01, 2010, 00:32:23
yep that works. specifically incase anyone runs across the problem:

ARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, 0);
ARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ELEMENT_ARRAY_BUFFER_ARB, 0);