projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33f0d11
)
egl/dri: don't expose configs with an accumulation buffer
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 9 Apr 2015 21:25:07 +0000
(23:25 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 30 Apr 2015 12:38:38 +0000
(14:38 +0200)
src/egl/drivers/dri2/egl_dri2.c
patch
|
blob
|
history
diff --git
a/src/egl/drivers/dri2/egl_dri2.c
b/src/egl/drivers/dri2/egl_dri2.c
index a428f284ae7d9f20139b8308c43815ab94d49cf1..14b9be90bd07f607adec94e102649c04f85e367e 100644
(file)
--- a/
src/egl/drivers/dri2/egl_dri2.c
+++ b/
src/egl/drivers/dri2/egl_dri2.c
@@
-194,6
+194,15
@@
dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id,
dri_masks[3] = value;
break;
+ case __DRI_ATTRIB_ACCUM_RED_SIZE:
+ case __DRI_ATTRIB_ACCUM_GREEN_SIZE:
+ case __DRI_ATTRIB_ACCUM_BLUE_SIZE:
+ case __DRI_ATTRIB_ACCUM_ALPHA_SIZE:
+ /* Don't expose visuals with the accumulation buffer. */
+ if (value > 0)
+ return NULL;
+ break;
+
default:
key = dri2_to_egl_attribute_map[attrib];
if (key != 0)