Login  Register

Problem with glDrawArrays [SOLVED]

Posted by Matteo Battaglio on Aug 26, 2011; 6:43am
URL: https://forum.jogamp.org/Problem-with-glDrawArrays-tp3280569p3286001.html

gouessej wrote
Don't do this:
Matteo Battaglio wrote
triangle = ByteBuffer.allocateDirect(triangleSizeInBytes).asFloatBuffer();
Use Buffers.newFloatBuffer.
Yeah!!
It solved my problem.
Many thanks for your support!