mesa: fix ReadBuffer initialization
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 18 Jun 2008 15:30:13 +0000 (09:30 -0600)
committerKeith Whitwell <keith@tungstengraphics.com>
Mon, 22 Sep 2008 05:13:55 +0000 (22:13 -0700)
src/mesa/main/context.c

index 19dd55f9d947166cc6ee66bd1866604a1e5ca884..ed0addcdbbfacdea03f3e748200795c3c2c6a10d 100644 (file)
@@ -1037,6 +1037,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 );