mesa: fix ReadBuffer initialization
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 18 Jun 2008 15:30:13 +0000 (09:30 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 18 Jun 2008 15:30:13 +0000 (09:30 -0600)
src/mesa/main/context.c

index 439ac6aba52504b0ea13ab43f965a65bc484f8a5..8aab1eebc8b062ddc98d14f0ff18372cd22a0534 100644 (file)
@@ -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 );