mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 11:30:22 +01:00
winsys: fix depth buffer size when using stencil
This commit is contained in:
parent
95ce6474f4
commit
2a299851b9
1 changed files with 3 additions and 0 deletions
|
|
@ -304,6 +304,9 @@ save_glx_visual( Display *dpy, XVisualInfo *vinfo,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (stencil_size > 0 && depth_size > 0)
|
||||
depth_size = 24;
|
||||
|
||||
/* Comparing IDs uses less memory but sometimes fails. */
|
||||
/* XXX revisit this after 3.0 is finished. */
|
||||
if (_mesa_getenv("MESA_GLX_VISUAL_HACK"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue