JOGL2 + GLCapabilities + Windows
Posted by Marc@56K on Dec 27, 2010; 11:01pm
URL: https://forum.jogamp.org/JOGL2-GLCapabilities-Windows-tp2153961.html
Hi,
i updated my application from jogl 2.0 beta 10 to jogl-b18 (Windows x86). Now i got this exception:
javax.media.opengl.GLException: array offset argument "infoLog_offset" (0) equals or exceeds array length (0)
at com.jogamp.opengl.impl.gl4.GL4bcImpl.glGetShaderInfoLog(GL4bcImpl.java:10178)
The problem has something todo with my GLCapabilities:
GLProfile glp = GLProfile.get("GL2GL3");
GLCapabilities caps = new GLCapabilities(glp);
caps.setStencilBits(8);
If i remove the stencil settings: caps.setStencilBits(8) there is no exception and the application runs without stencil support.
Another solution is to activate the Stencil-Buffer and FSAA like this:
GLProfile glp = GLProfile.get("GL2GL3");
GLCapabilities caps = new GLCapabilities(glp);
caps.setStencilBits(8);
caps.setSampleBuffers(true);
I'm pretty sure this is a bug in the windows implementation of jogl. Under macos everything works fine.