summaryrefslogtreecommitdiff
path: root/src/glx/glxconfig.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-03-06 19:54:37 +1000
committerDave Airlie <airlied@redhat.com>2011-03-06 19:56:22 +1000
commitb09b3e5c8f4f5d71b986bf359b56e7b60424538d (patch)
treed2ec849880e1d1b0418b06d10060d5f903457051 /src/glx/glxconfig.c
parent7cb17862c6a5690fbe88508cbb772ba92373292f (diff)
glx: add initial GLX_EXT_framebuffer_sRGB support.
this doesn't bind to drivers yet, just enough to in theory make indirect work against other servers. I'm really not sure what the rules for adding extensions to the known_gl_extensions list as it looks to be missing a few. are these GL extensions that have GLX protocol?? Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/glx/glxconfig.c')
-rw-r--r--src/glx/glxconfig.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/glx/glxconfig.c b/src/glx/glxconfig.c
index 1d9678f48cd..805c301efb4 100644
--- a/src/glx/glxconfig.c
+++ b/src/glx/glxconfig.c
@@ -188,6 +188,10 @@ glx_config_get(struct glx_config * mode, int attribute, int *value_return)
*value_return = mode->yInverted;
return 0;
+ case GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT:
+ *value_return = mode->framebuffer_srgb_capable;
+ return 0;
+
/* Applications are NOT allowed to query GLX_VISUAL_SELECT_GROUP_SGIX.
* It is ONLY for communication between the GLX client and the GLX
* server.
@@ -251,6 +255,7 @@ glx_config_create_list(unsigned count)
(*next)->bindToMipmapTexture = GLX_DONT_CARE;
(*next)->bindToTextureTargets = GLX_DONT_CARE;
(*next)->yInverted = GLX_DONT_CARE;
+ (*next)->framebuffer_srgb_capable = GLX_DONT_CARE;
next = &((*next)->next);
}