From: Brian Paul Date: Fri, 4 Aug 2006 13:41:25 +0000 (+0000) Subject: fix bug when pushing ReadBuffer state for GL_PIXEL_MODE_BIT X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c488dcab2cef6c851e9d54f03168e4dee805102;p=mesa.git fix bug when pushing ReadBuffer state for GL_PIXEL_MODE_BIT --- diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 1f292de3c7a..ef970ad9eb6 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -276,6 +276,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;