diff options
author | Brian Paul <[email protected]> | 2008-12-17 10:55:29 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-12-17 10:55:29 -0700 |
commit | 2a299851b9ee06fafc03cf4dc7d26023bac17f69 (patch) | |
tree | 25c367f849d4704398d693028af23cfaf1233f85 /src | |
parent | 95ce6474f46e86d5511117cc5bbb2702b2469f5c (diff) |
winsys: fix depth buffer size when using stencil
Diffstat (limited to 'src')
-rw-r--r-- | 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 a56e63572a7..fd2d222c859 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")) |