Login  Register

Re: Curve text rendering and glBindVertexArray(0)

Posted by amitshesh on Sep 21, 2017; 2:24pm
URL: https://forum.jogamp.org/Curve-text-rendering-and-glBindVertexArray-0-tp4038188p4038199.html

I will use hasnoDefaultVAO() as you suggested. But as jmaasing says, this allows me a better workaround for the problem that I think exists in JOGL: it seems to use VBOs without VAO.

My workaround was as follows: generate a new VAO id before initializing the curve text renderer, and then bind that one before using the text renderer in any way, and unbind it afterwards. With this workaround the code seems to work correctly with glBindVertexArray(0) on Windows and Mac OSX. However it is not perfect, because my code now manages a VAO that is really used by JOGL, and not my rendering. Using hasNoDefaultVAO() will make this design slightly better, but it still sidesteps the original problem.