Login  Register

Re: JOGL2 TextRenderer throws GLException if using Pixel Buffer Objects

Posted by Matteo Battaglio on Oct 19, 2011; 9:36am
URL: https://forum.jogamp.org/JOGL2-TextRenderer-throws-GLException-if-using-Pixel-Buffer-Objects-tp3421923p3433823.html

I found the problem: if I call textRenderer.setUseVertexArrays(false) everything runs well!

Actually I found that this issue happens if I make use of VBOs to render vertices, so it doesn't specifically involve PBOs (which I know are the same thing as VBOs to the GPU), neither textures.

It is also worth noting that the application doesn't always crash at the first display of the panel, but sometimes at the 2nd or 3rd dispay.

I attached an example code: at line 54 there's the line "textRenderer.setUseVertexArrays(true);"

JOGLTextRenderingCanvas.java