diff options
author | marha <marha@users.sourceforge.net> | 2011-02-10 07:12:27 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-02-10 07:12:27 +0000 |
commit | 183968dd18dc91f73325980bd511ed6bdb38b432 (patch) | |
tree | 44b101aea37e5ef679aca953399c20502dabdd01 /mesalib/src/mesa/state_tracker/st_extensions.c | |
parent | 51a59b7f7f9b134791d3b09673063e4c45ea9eee (diff) | |
download | vcxsrv-183968dd18dc91f73325980bd511ed6bdb38b432.tar.gz vcxsrv-183968dd18dc91f73325980bd511ed6bdb38b432.tar.bz2 vcxsrv-183968dd18dc91f73325980bd511ed6bdb38b432.zip |
libX11 mesa git update 10 Feb 2011
Diffstat (limited to 'mesalib/src/mesa/state_tracker/st_extensions.c')
-rw-r--r-- | mesalib/src/mesa/state_tracker/st_extensions.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mesalib/src/mesa/state_tracker/st_extensions.c b/mesalib/src/mesa/state_tracker/st_extensions.c index a81cbe85d..d600edc48 100644 --- a/mesalib/src/mesa/state_tracker/st_extensions.c +++ b/mesalib/src/mesa/state_tracker/st_extensions.c @@ -390,6 +390,15 @@ void st_init_extensions(struct st_context *st) PIPE_BIND_SAMPLER_VIEW, 0)) { ctx->Extensions.EXT_texture_sRGB = GL_TRUE; ctx->Extensions.EXT_texture_sRGB_decode = GL_TRUE; + if (screen->is_format_supported(screen, PIPE_FORMAT_A8B8G8R8_SRGB, + PIPE_TEXTURE_2D, 0, + PIPE_BIND_RENDER_TARGET, 0) || + screen->is_format_supported(screen, PIPE_FORMAT_B8G8R8A8_SRGB, + PIPE_TEXTURE_2D, 0, + PIPE_BIND_RENDER_TARGET, 0)) { + ctx->Extensions.EXT_framebuffer_sRGB = GL_TRUE; + ctx->Const.sRGBCapable = GL_TRUE; + } } if (screen->is_format_supported(screen, PIPE_FORMAT_R8G8_UNORM, |