aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/enable.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-01-22 13:05:58 +0000
committermarha <marha@users.sourceforge.net>2011-01-22 13:05:58 +0000
commitb8ffa56f8bda74a402eae0c89aadfda7b7db507f (patch)
tree33fb63493b21297286af67eadb21586ca9c20f41 /mesalib/src/mesa/main/enable.c
parentb0be6a88c8fecdf15176f642c0799bff99930e0d (diff)
downloadvcxsrv-b8ffa56f8bda74a402eae0c89aadfda7b7db507f.tar.gz
vcxsrv-b8ffa56f8bda74a402eae0c89aadfda7b7db507f.tar.bz2
vcxsrv-b8ffa56f8bda74a402eae0c89aadfda7b7db507f.zip
mesalib git update 22/1/2011
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;
}