mesa/965: add support for GL_EXT_framebuffer_sRGB (v2)
[mesa.git] / src / mesa / main / fbobject.c
index 04f02ce37e352006fb6fb107e007e81f039233e0..97cbd3c614d8feb253ddab1da82db9c3e52b8fa5 100644 (file)
@@ -2157,7 +2157,7 @@ _mesa_GetFramebufferAttachmentParameterivEXT(GLenum target, GLenum attachment,
                      "glGetFramebufferAttachmentParameterivEXT(pname)");
       }
       else {
-         if (ctx->Extensions.EXT_framebuffer_sRGB) {
+         if (ctx->Extensions.EXT_framebuffer_sRGB && ctx->Const.sRGBCapable) {
             *params = _mesa_get_format_color_encoding(att->Renderbuffer->Format);
          }
          else {