Re: GL_FRAMEBUFFER_SRGB and GLJPanel
Posted by
Sven Gothel on
Oct 24, 2013; 7:10pm
URL: https://forum.jogamp.org/GL-FRAMEBUFFER-SRGB-and-GLJPanel-tp4030329p4030366.html
On 10/24/2013 09:03 PM, Christopher Bruns [via jogamp] wrote:
> Sorry I'm still having trouble understanding how to do this correctly. I now
> have both glEnable and glDisable statements in my test program, and the
> GLJPanel still appears dark. Can you please suggest what might be wrong with
> my modified test program below?
>
> @Override
> public void display(GLAutoDrawable gad) {
> GL gl = gad.getGL();
> GL2GL3 gl2gl3 = gl.getGL2GL3();
> // This next line should raise the brightness of the image
> gl2gl3.glEnable(GL2GL3.GL_FRAMEBUFFER_SRGB);
The enable/disable is good.
> gl.glClear(GL.GL_COLOR_BUFFER_BIT);
You perform nothing here ?
I was expecting you would at least render something into an FBO
and use it's texture..
So all what happens is .. glClear(..)
> gl2gl3.glDisable(GL2GL3.GL_FRAMEBUFFER_SRGB);
> }
>