From: Brian Paul Date: Wed, 18 Jun 2008 15:30:13 +0000 (-0600) Subject: mesa: fix ReadBuffer initialization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19f872f2ecb45d5e95ccd2b434a88781c9b4f451;p=mesa.git mesa: fix ReadBuffer initialization --- diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 439ac6aba52..8aab1eebc8b 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 );