Login  Register

Re: glBufferData and glBufferSubData seems not to work

Posted by gouessej on Aug 19, 2011; 11:11am
URL: https://forum.jogamp.org/glBufferData-and-glBufferSubData-seems-not-to-work-tp3267295p3267752.html

Hi!

A call of indices.rewind() is missing before the line 153 (you use get() on this buffer which changes the position). The position in the NIO buffer is very important for JOGL.

I used these methods a few months ago without problems. If you're sure something is wrong, write a very short test case which exhibits the wrong behavior. Maybe it is a regression. Best regards
Julien Gouesse | Personal blog | Website