Login  Register

JOGL2 TextRenderer throws GLException if using Pixel Buffer Objects

Posted by Matteo Battaglio on Oct 14, 2011; 2:49pm
URL: https://forum.jogamp.org/JOGL2-TextRenderer-throws-GLException-if-using-Pixel-Buffer-Objects-tp3421923.html

Hi,
I'm trying to use TextRenderer (from com.jogamp.opengl.util.awt) to draw a label on screen;
My application makes use of PBOs to render a video stream on a texture.
When I call textRenderer.beginRendering(width, height) it throws the following exception:
"Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: unpack pixel_buffer_object must be disabled to call this method."

Is there a way to render the text even if using Pixel Buffer Objects?

Thanks in advance