Re: TextRenderer - my text won't show
Posted by chakie on Aug 08, 2013; 11:19am
URL: https://forum.jogamp.org/TextRenderer-my-text-won-t-show-tp4029291p4029763.html
Randomly using the test code from the example above and I get this:
Exception in thread "main-FPSAWTAnimator-Timer0" java.lang.RuntimeException: javax.media.opengl.GLException: Thread[AWT-EventQueue-0,6,main] glGetError() returned the following error codes after a call to glUniform(<javax.media.opengl.GLUniformData> GLUniformData[name gcu_ColorStatic, location 1, size 1x3, count 1, data HeapFloatBuffer[pos 0, lim 3, cap 3, remaining 3; array true, direct false, r/w true: 0.0, 0.0, 1.0]]): GL_INVALID_OPERATION ( 1282 0x502),
Caused by: javax.media.opengl.GLException: Thread[AWT-EventQueue-0,6,main] glGetError() returned the following error codes after a call to glUniform(<javax.media.opengl.GLUniformData> GLUniformData[name gcu_ColorStatic, location 1, size 1x3, count 1, data HeapFloatBuffer[pos 0, lim 3, cap 3, remaining 3; array true, direct false, r/w true: 0.0, 0.0, 1.0]]): GL_INVALID_OPERATION ( 1282 0x502),
at javax.media.opengl.DebugGL3.checkGLGetError(DebugGL3.java:9753)
at javax.media.opengl.DebugGL3.glUniform(DebugGL3.java:5174)
at com.jogamp.opengl.util.glsl.ShaderState.uniform(ShaderState.java:952)
at com.jogamp.graph.curve.opengl.Renderer.setColorStatic(Renderer.java:213)
At that point all I do is:
renderer.init( gl );
renderer.setAlpha( gl, color.alpha );
renderer.setColorStatic( gl, color.red, color.green, color.blue );
where red, green and blue are [0.0f .. 1.0f].