Login  Register

Re: Little Bug in opengl function or parameter

Posted by Sven Gothel on Oct 30, 2012; 7:37pm
URL: https://forum.jogamp.org/Little-Bug-in-opengl-function-or-parameter-tp4026658p4026659.html

On 10/30/2012 08:01 PM, adi [via jogamp] wrote:
> Hi
>
> Can't use
> gl.glDepthMask(GL4bc.GL_FALSE);
>
> The function needs the type boolean, but the correct
> parameter GL4bc.GL_FALSE is an integer value.
> What is wrong?

C: "void glDepthMask(GLboolean flag)"
Java "public void glDepthMask(boolean flag)"

Use the Java 'boolean', not the GL integer GLboolean GL_TRUE, that's all.

~Sven



signature.asc (907 bytes) Download Attachment