summaryrefslogtreecommitdiff
path: root/hw/xquartz
diff options
context:
space:
mode:
authorTomasz Lis <tomasz.lis@intel.com>2013-03-11 10:21:28 +0100
committerKeith Packard <keithp@keithp.com>2013-03-18 10:02:00 -0700
commitcf89aa53748b964f9d9eceaa12a7d6f1a076d1ee (patch)
tree46c8e4ba7b451f64d96c3a9633178c297a029214 /hw/xquartz
parent679ccecd8bc6d797e99f3b707f8041b727ca7a49 (diff)
Full support of sRGB capable fbconfigs.
Changes to correctly initialize the sRGB capability attribute and transfer it between XServer and the client. Modifications include extension string, transferring visual config attribs and fbconfig attribs. Also, attribute is initialized in the modules which do not really use it (xquartz and xwin). This version advertises both ARB and EXT strings, and initializes the capability to default value of FALSE. It has corrected required GLX version and does not influence swrast. The sRGB capable attribute is attached only to those configs which do have this capability. Both ARB and EXT versions share the same GLX extension enabling bit. Signed-off-by: Tomasz Lis <tomasz.lis@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'hw/xquartz')
-rw-r--r--hw/xquartz/GL/visualConfigs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/xquartz/GL/visualConfigs.c b/hw/xquartz/GL/visualConfigs.c
index 03486cd66..a00abf29a 100644
--- a/hw/xquartz/GL/visualConfigs.c
+++ b/hw/xquartz/GL/visualConfigs.c
@@ -262,6 +262,9 @@ __GLXconfig *__glXAquaCreateVisualConfigs(int *numConfigsPtr, int screenNumber)
c->bindToTextureTargets = 0;
c->yInverted = 0;
+ /* EXT_framebuffer_sRGB */
+ c->sRGBCapable = GL_FALSE;
+
c = c->next;
}
}