From 561ae7a6f5efa8e963aab67526bf912cfeaf6154 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 4 Aug 2006 13:42:31 +0000 Subject: fix bug when pushing ReadBuffer state for GL_PIXEL_MODE_BIT --- src/mesa/main/attrib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index ef9b539ff31..3b6f036b80d 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -275,6 +275,8 @@ _mesa_PushAttrib(GLbitfield mask) struct gl_pixel_attrib *attr; attr = MALLOC_STRUCT( gl_pixel_attrib ); MEMCPY( attr, &ctx->Pixel, sizeof(struct gl_pixel_attrib) ); + /* push the Read FBO's ReadBuffer state, not ctx->Pixel.ReadBuffer */ + attr->ReadBuffer = ctx->ReadBuffer->ColorReadBuffer; newnode = new_attrib_node( GL_PIXEL_MODE_BIT ); newnode->data = attr; newnode->next = head; -- cgit v1.2.1