Re: Trouble getting a simple JOGL program running on OSX 10.10
Posted by
elect on
Apr 20, 2016; 6:37am
URL: https://forum.jogamp.org/Trouble-getting-a-simple-JOGL-program-running-on-OSX-10-10-tp4036627p4036630.html
roger wrote
So after a ton of frustration, and poking around other people's source code. I've discovered that my problem was that I didn't use Direct Buffers. Instead, I was creating my buffers with FloatBuffer.allocate().
You should use either GLBuffers.newDirectFloatBuffer() or ByteBuffer.allocateDirect().order(native).asFloatBuffer()
roger wrote
Is this noted in the documentation anywhere?
Hopefully this will help others who get hung up on this later.
Thanks
Unfortunately not, but good hint, we will add it into the wiki