Mesa (gallium-0.2): winsys: fix depth buffer size when using stencil
Brian Paul
brianp at kemper.freedesktop.org
Wed Dec 17 17:59:09 UTC 2008
Module: Mesa
Branch: gallium-0.2
Commit: 6b88d9606f5cc8147b9ef13c70a9416313c52205
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b88d9606f5cc8147b9ef13c70a9416313c52205
Author: Brian Paul <brian.paul at tungstengraphics.com>
Date: Wed Dec 17 10:55:29 2008 -0700
winsys: fix depth buffer size when using stencil
---
src/gallium/winsys/xlib/fakeglx.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
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"))
More information about the mesa-commit
mailing list