aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/enable.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-01-22 17:28:46 +0000
committermarha <marha@users.sourceforge.net>2011-01-22 17:28:46 +0000
commitf544012f5c37fba02cae71b39a533f8296cdabb5 (patch)
tree362b7ac783787d77962014f5f8e4e7c116de3f3f /mesalib/src/mesa/main/enable.c
parent58eb5cd6de079f1f3ddf1edc2d436a24eb858dc2 (diff)
parentb8ffa56f8bda74a402eae0c89aadfda7b7db507f (diff)
downloadvcxsrv-f544012f5c37fba02cae71b39a533f8296cdabb5.tar.gz
vcxsrv-f544012f5c37fba02cae71b39a533f8296cdabb5.tar.bz2
vcxsrv-f544012f5c37fba02cae71b39a533f8296cdabb5.zip
svn merge ^/branches/released .
Diffstat (limited to 'mesalib/src/mesa/main/enable.c')
-rw-r--r--mesalib/src/mesa/main/enable.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mesalib/src/mesa/main/enable.c b/mesalib/src/mesa/main/enable.c
index c91337355..08e396bc1 100644
--- a/mesalib/src/mesa/main/enable.c
+++ b/mesalib/src/mesa/main/enable.c
@@ -968,6 +968,12 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state)
}
break;
+ /* GL3.0 - GL_framebuffer_sRGB */
+ case GL_FRAMEBUFFER_SRGB_EXT:
+ CHECK_EXTENSION(EXT_framebuffer_sRGB, cap);
+ ctx->Color.sRGBEnabled = state;
+ break;
+
default:
goto invalid_enum_error;
}
@@ -1480,6 +1486,11 @@ _mesa_IsEnabled( GLenum cap )
}
return ctx->Array.PrimitiveRestart;
+ /* GL3.0 - GL_framebuffer_sRGB */
+ case GL_FRAMEBUFFER_SRGB_EXT:
+ CHECK_EXTENSION(EXT_framebuffer_sRGB);
+ return ctx->Color.sRGBEnabled;
+
default:
goto invalid_enum_error;
}