Re: Strange phenomenon about glDrawPixels, Any one can help me ?
Posted by
gouessej on
Aug 05, 2015; 9:13am
URL: https://forum.jogamp.org/Strange-phenomenon-about-glDrawPixels-Any-one-can-help-me-tp4035033p4035034.html
Hi
Look at the source code:
https://github.com/sgothel/gluegen/blob/master/src/java/com/jogamp/common/nio/Buffers.java#L1050Check the size of the byte array inside DataBufferByte returned by getData().
By the way, your code seems to be inefficient, I just hope that you don't create an indirect NIO buffer at each call. You should rather find a way to reuse the data buffer as is and pass it to JOGL or create a single direct NIO buffer into which you could copy the content of the data buffer.