summaryrefslogtreecommitdiffstats
path: root/src/egl/drivers/dri2/egl_dri2.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-02-05 14:21:13 -0800
committerJason Ekstrand <[email protected]>2016-02-05 14:21:13 -0800
commit9645b8eb1f1b79e537ad8ddb683507df7bc9da58 (patch)
tree8e554a43a136b5f7951ff8734d42deb5e81c262b /src/egl/drivers/dri2/egl_dri2.c
parent3eebf3686be3de10cbeda8acd884e82df3e1438a (diff)
parent41875ac4edd8c884225c44c0840bd20291b410ca (diff)
Merge branch mesa-public/master into vulkan
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.c')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index d34b16119e2..8f50f0ce573 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -235,6 +235,8 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
case __DRI_ATTRIB_FRAMEBUFFER_SRGB_CAPABLE:
srgb = value != 0;
+ if (!disp->Extensions.KHR_gl_colorspace && srgb)
+ return NULL;
break;
default: