From 6b88d9606f5cc8147b9ef13c70a9416313c52205 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 17 Dec 2008 10:55:29 -0700 Subject: winsys: fix depth buffer size when using stencil --- src/gallium/winsys/xlib/fakeglx.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/winsys/xlib') diff --git a/src/gallium/winsys/xlib/fakeglx.c b/src/gallium/winsys/xlib/fakeglx.c index a56e63572a..fd2d222c85 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")) -- cgit v1.2.3