From: Brian Paul Date: Wed, 17 Dec 2008 17:55:29 +0000 (-0700) Subject: winsys: fix depth buffer size when using stencil X-Git-Tag: 062012170305~17580^2~390^2~138 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a299851b9ee06fafc03cf4dc7d26023bac17f69;p=profile%2Fivi%2Fmesa.git winsys: fix depth buffer size when using stencil --- diff --git a/src/gallium/winsys/xlib/fakeglx.c b/src/gallium/winsys/xlib/fakeglx.c index a56e635..fd2d222 100644 --- a/src/gallium/winsys/xlib/fakeglx.c +++ b/src/gallium/winsys/xlib/fakeglx.c @@ -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"))