summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-03-23 21:37:05 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-03-23 21:37:05 +0000
commit6d62d7f32189d6a7b053420d16495217dc62f66f (patch)
treef2028e75b7ff814924e97ce2bca274b2e3181da6 /src/mesa
parent4672b2d88cac92d1dde4909b16b7477e7793d17f (diff)
minor tweak to visual setup for accum buffers
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/x11/fakeglx.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c
index d3a36ec8f4..828896c6ba 100644
--- a/src/mesa/drivers/x11/fakeglx.c
+++ b/src/mesa/drivers/x11/fakeglx.c
@@ -1,4 +1,4 @@
-/* $Id: fakeglx.c,v 1.47 2001/03/08 15:23:46 brianp Exp $ */
+/* $Id: fakeglx.c,v 1.48 2001/03/23 21:37:05 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -1081,14 +1081,14 @@ Fake_glXChooseVisual( Display *dpy, int screen, int *list )
/* we only support one size of stencil and accum buffers. */
if (stencil_size > 0)
stencil_size = STENCIL_BITS;
- if (accumRedSize > 0)
+ if (accumRedSize > 0 || accumGreenSize > 0 || accumBlueSize > 0 ||
+ accumAlphaSize > 0) {
accumRedSize = ACCUM_BITS;
- if (accumGreenSize > 0)
accumGreenSize = ACCUM_BITS;
- if (accumBlueSize > 0)
accumBlueSize = ACCUM_BITS;
- if (accumAlphaSize > 0)
- accumAlphaSize = ACCUM_BITS;
+ accumAlphaSize = alpha_flag ? ACCUM_BITS : 0;
+ }
+
if (!save_glx_visual( dpy, vis, rgb_flag, alpha_flag, double_flag,
stereo_flag, depth_size, stencil_size,
accumRedSize, accumGreenSize,