Re: How to use VBO?
Posted by
gouessej on
Jan 18, 2015; 3:52pm
URL: https://forum.jogamp.org/How-to-use-VBO-tp4033871p4033877.html
Rather write:
gl.glBufferData(
GL.GL_ARRAY_BUFFER, Buffers.SIZEOF_FLOAT*fBuff.capacity(),fBuff,GL.GL_STATIC_DRAW);
You passed a buffer identifier instead of a buffer target.
It was explained in the documentation:
target
Specifies the target to which the buffer object is bound for glBufferData, which must be one of the buffer binding targets in the following table:
Please read the documentation carefully, it will prevent you from doing tons of mistakes.