Login  Register

ShaderCode throws "Unknown shader type: 36313" with GEOMETRY_SHADER

Posted by bananafish on Dec 23, 2012; 12:45pm
URL: https://forum.jogamp.org/ShaderCode-throws-Unknown-shader-type-36313-with-GEOMETRY-SHADER-tp4027631.html

When using code similar to this:
GL4 gl = ....
ShaderCode gs = new ShaderCode(GL4.GL_GEOMETRY_SHADER,1,shaderSourceString);

... I get the following exception:
java.lang.Exception: Unknown shader type: 36313

However using GL_FRAGMENT_SHADER and GL_VERTEX_SHADER do indeed work properly.

Is GEOMETRY_SHADER not supported in ShaderCode class?