summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2002-10-29 15:04:35 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2002-10-29 15:04:35 +0000
commit153f15497cad3fbcb7a61362deb50b40d45c91a0 (patch)
treeba8d33615b3c6c169624d4ee1bcf2d2875674728 /src/mesa/main
parentdec2a4d4b719069c0a306cc51280cacb1b61a18a (diff)
init a few more fields in _mesa_initialize_visual()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/context.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index fef403671e..4f93b1a375 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1,4 +1,4 @@
-/* $Id: context.c,v 1.186 2002/10/24 23:57:20 brianp Exp $ */
+/* $Id: context.c,v 1.187 2002/10/29 15:04:35 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -369,6 +369,7 @@ _mesa_initialize_visual( GLvisual *vis,
vis->rgbMode = rgbFlag;
vis->doubleBufferMode = dbFlag;
vis->stereoMode = stereoFlag;
+
vis->redBits = redBits;
vis->greenBits = greenBits;
vis->blueBits = blueBits;
@@ -382,6 +383,14 @@ _mesa_initialize_visual( GLvisual *vis,
vis->accumAlphaBits = (accumAlphaBits > 0) ? (8 * sizeof(GLaccum)) : 0;
vis->stencilBits = (stencilBits > 0) ? (8 * sizeof(GLstencil)) : 0;
+ vis->haveAccumBuffer = accumRedBits > 0;
+ vis->haveDepthBuffer = depthBits > 0;
+ vis->haveStencilBuffer = stencilBits > 0;
+
+ vis->numAuxBuffers = 0;
+ vis->level = 0;
+ vis->pixmapMode = 0;
+
return GL_TRUE;
}