summaryrefslogtreecommitdiffstats
path: root/src/mesa/swrast/s_context.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2002-10-11 17:50:59 +0000
committerBrian Paul <[email protected]>2002-10-11 17:50:59 +0000
commit32d0d5aec4f905fe443ffdfdfae20c5b92ffb0db (patch)
treee65a841091ee82daa5b0e7315ab7e6653c2ffbc1 /src/mesa/swrast/s_context.c
parentf58826db573ac3d837c0cc6368c52657594a6973 (diff)
init swrast->CurrentBuffer
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r--src/mesa/swrast/s_context.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c
index 8decd1c4a6e..5299bf85497 100644
--- a/src/mesa/swrast/s_context.c
+++ b/src/mesa/swrast/s_context.c
@@ -1,4 +1,4 @@
-/* $Id: s_context.c,v 1.39 2002/10/04 17:37:46 brianp Exp $ */
+/* $Id: s_context.c,v 1.40 2002/10/11 17:50:59 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -507,6 +507,11 @@ _swrast_CreateContext( GLcontext *ctx )
swrast->AllowVertexFog = GL_TRUE;
swrast->AllowPixelFog = GL_TRUE;
+ if (ctx->Visual.doubleBufferMode)
+ swrast->CurrentBuffer = BACK_LEFT_BIT;
+ else
+ swrast->CurrentBuffer = FRONT_LEFT_BIT;
+
/* Optimized Accum buffer */
swrast->_IntegerAccumMode = GL_TRUE;
swrast->_IntegerAccumScaler = 0.0;