From: Brian Paul Date: Tue, 29 Oct 2002 15:04:35 +0000 (+0000) Subject: init a few more fields in _mesa_initialize_visual() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=153f15497cad3fbcb7a61362deb50b40d45c91a0;p=mesa.git init a few more fields in _mesa_initialize_visual() --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index fef403671ec..4f93b1a3750 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; }