Login  Register

Re: Shader crashes JVM

Posted by Sven Gothel on Mar 20, 2013; 9:43am
URL: https://forum.jogamp.org/Shader-crashes-JVM-tp4028702p4028715.html

On 03/20/2013 10:37 AM, gouessej [via jogamp] wrote:
> I meant glGetShaderInfoLog() and glGetProgramInfoLog().
>
> The GLSL sandbox probably uses a different code path, in no way the fact that
> it crashes in your program proves that there is a bug in JOGL itself.
Agreed, a shader program shall not crash the process
regardless of erroneous GL commands ..

You can try setting the debug properties:

-Djogl.debug.TraceGL
  trace all GL commands

-Djogl.debug.DebugGL
  exception if GL command fails, also enables the debug extension if available

-Djogl.debug.GLSLCode
  if using our com.jogamp.opengl.util.glsl.ShaderCode,
  this will dump the shader _and_ any compile/linkage problems.
  see our GL2ES2 demos / unit-tests

~Sven



signature.asc (911 bytes) Download Attachment