diff options
author | Marek Olšák <[email protected]> | 2015-04-09 23:25:07 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-04-30 14:38:38 +0200 |
commit | 396cbabbefaae64deac6d33c79898bb07db8a621 (patch) | |
tree | fafdf9ef75a8d3787853333163ccadd91ffbfec6 /src/egl/drivers/dri2/egl_dri2.c | |
parent | 33f0d1138d6ffa4596d3deda68fa5ba9a3d7cf86 (diff) |
egl/dri: don't expose configs with an accumulation buffer
Diffstat (limited to 'src/egl/drivers/dri2/egl_dri2.c')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index a428f284ae7..14b9be90bd0 100644 --- 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) |