Re: TextRenderer - my text won't show
Posted by Deedee on Sep 03, 2013; 7:22pm
URL: https://forum.jogamp.org/TextRenderer-my-text-won-t-show-tp4029291p4029975.html
Here's what's been going on. On my Linux machine I had older versions of the .jar files (since January-ish). When I installed jogl on the Mac I got the newer versions (since July).
So now I tested the code on linux + newer versions and it broke. It does the same as the Mac, i.e. the code runs with no complaints at all but the text doesn't appear.
I also tested the mac with the older versions and I get the following error.
Shader status invalid: ERROR: 0:3: '' : version '110' is not supported
ERROR: 0:4: '' : #version required and missing
ERROR: 0:34: 'attribute' : syntax error syntax error
javax.media.opengl.GLException: TextRendererImpl01: Counldn't link program: ShaderProgram[id=1, linked=false, inUse=false, program: 1,
ShaderCode[id=1, type=VERTEX_SHADER, valid=false, shader: 2, source]
ShaderCode[id=1, type=FRAGMENT_SHADER, valid=false, shader: 2, source]]
and it's complaining about lines
tren.init(gl);
and
gl.glUseProgram(shaderState.shaderProgram().program());
I am not using any of my own shaders so the problem must be with the ones that the program from shaderState is using.