init a few more fields in _mesa_initialize_visual()
authorBrian Paul <brian.paul@tungstengraphics.com>
Tue, 29 Oct 2002 15:04:35 +0000 (15:04 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Tue, 29 Oct 2002 15:04:35 +0000 (15:04 +0000)
src/mesa/main/context.c

index fef403671ec0377f23a465bd6166745acff5da2e..4f93b1a37501e4cc721084e46ed1b2a49efcc65a 100644 (file)
@@ -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;
 }