Login  Register

Curve text rendering and glBindVertexArray(0)

Posted by amitshesh on Sep 19, 2017; 7:15pm
URL: https://forum.jogamp.org/Curve-text-rendering-and-glBindVertexArray-0-tp4038188.html

I'm using JOGL and the new curve text rendering library. Everything works well on Windows. But on Mac OSX Sierra 10.12.6, the text rendering simply does not appear. I have isolated it to a call to glBindVertexArray(0) in my code, which I do after I am done rendering my own models but before JOGL text rendering takes over (in every frame). Doing this results in a "Pre GL error 0x502" from the curve renderer's shader code somewhere. Commenting out the glBindVertexArray(0) makes the text appear, but my own rendering disappears.

After trial and error, I found that surprisingly changing glBindVertexArray(0) to glBindVertexArray(1) makes everything appear with no errors. This is very bizarre, and this is a problem that I am facing only on Mac.

Any ideas?