mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 06:20:09 +01:00
egl/dri: don't expose configs with an accumulation buffer
This commit is contained in:
parent
33f0d1138d
commit
396cbabbef
1 changed files with 9 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue