[Exception] Cannot use Buffers when Array Buffer Object is enabled

Started by supagu, April 30, 2010, 11:19:38

Previous topic - Next topic

supagu

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?

spasi

You need to bind 0. Like: glBindBuffer(GL_ARRAY_BUFFER, 0).

supagu

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);