summaryrefslogtreecommitdiff
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-06-18 09:30:13 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-06-18 09:30:13 -0600
commit19f872f2ecb45d5e95ccd2b434a88781c9b4f451 (patch)
tree21bc3947562d6fefc0f903658be9532df67d775c /src/mesa/main
parenta668b43568b99170e354c7e7cbb393e633765ec4 (diff)
mesa: fix ReadBuffer initialization
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/context.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 439ac6aba5..8aab1eebc8 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1011,6 +1011,8 @@ init_attrib_groups(GLcontext *ctx)
_mesa_init_multisample( ctx );
#if FEATURE_pixel_transfer
_mesa_init_pixel( ctx );
+#else
+ ctx->Pixel.ReadBuffer = ctx->Visual.doubleBufferMode ? GL_BACK : GL_FRONT;
#endif
_mesa_init_pixelstore( ctx );
_mesa_init_point( ctx );