Posted by
JanBenes on
Mar 29, 2013; 10:27pm
URL: https://forum.jogamp.org/curve-TextRenderer-GL3-couldn-t-link-program-tp4028852.html
Hello everyone,
I'm trying to get "new" TextRenderer to work on my GL3 (forward compatible) context to work. I, however, get a "Couldn't link program" error message:
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
Exception in thread "AWT-EventQueue-0-AWTAnimator-1" java.lang.RuntimeException: javax.media.opengl.GLException: TextRendererImpl01: Couldn't link program: ShaderProgram[id=2, linked=false, inUse=false, program: 42,
ShaderCode[id=3, type=VERTEX_SHADER, valid=false, shader: 43, source]
ShaderCode[id=4, type=FRAGMENT_SHADER, valid=false, shader: 0, source]]
I'm running a Mac OS X 10.8.2 desktop and the following OpenGL "configuration" (as gathered from glGetString):
INFO: OpenGL information from vendor "NVIDIA Corporation":
Renderer: NVIDIA GeForce GTX 680MX OpenGL Engine
OpenGL version: 3.2 NVIDIA-8.6.22
GLSL version: 1.50
INFO: GL_ARB_ES2_compatibility: false
INFO: GL_ARB_ES3_compatibility: false
I set up the font rendering as follows:
rs = RenderState.createRenderState(new ShaderState(), SVertex.factory());
renderer = TextRenderer.create(rs, 0);
renderer.init(gl);
renderer.setAlpha(gl, 1.0f);
renderer.setColorStatic(gl, 0.0f, 0.0f, 0.0f);
..
font = FontFactory.get(FontFactory.JAVA).getDefault();
where gl is a GL3. The application throws the above mentioned exception at the renderer.init(gl) line. The render state seems to be empty, that is the ShaderProgram variable is null and the lists are empty, though the rest of the object seems initialized.
I suspect the issue has to do with the incompatibility of the text rendering shaders and my configuration, but am fairly new to both JOGL and OpenGL and so I'm not really sure. Could not find anybody else having a similar problem.
Any ideas or suggestions are welcome!
Thank you!