Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: OpenGL sRGB framebuffer oddity

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2013
    Posts
    22

    OpenGL sRGB framebuffer oddity

    I'm using GLFW3 to create a context and I've noticed that the GLFW_SRGB_CAPABLE property seems to have no effect. Regardless of what I set it to, I always get sRGB conversion when GL_FRAMEBUFFER_SRGB is enabled. My understanding is that when GL_FRAMEBUFFER_SRGB is enabled, you get sRGB conversion only if the framebuffer is a sRGB format. To add to the confusion, if I check the GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING I get GL_LINEAR regardless of what I set GLFW_SRGB_CAPABLE to.

    I'm using a Nvidia GTX 760 with the 340.76 drivers.

  2. #2
    Junior Member Newbie
    Join Date
    Dec 2013
    Posts
    22
    Can nobody offer any insights on this issue? This doesn't appear to be an issue with GLFW. I created a window and context manually and was sure to set WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB to true.

    Am I checking this correctly?

    Code :
     
    glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_FRONT_LEFT, GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING, &enc);

    This should return GL_SRGB, should it not? If it is applying sRGB correction regardless of what WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB is set to, then is Nvidia's driver not broken? Nobody has noticed this until now?
    Last edited by Chris_F; 09-19-2014 at 06:53 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •