summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2006-08-04 13:42:31 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2006-08-04 13:42:31 +0000
commit561ae7a6f5efa8e963aab67526bf912cfeaf6154 (patch)
tree2dfd7c9a09048423dd324ade937dc2e0b0df4648
parentf248927f47b46f078e28d4a6da0425055c721b8a (diff)
downloadmesa-texman_0_1_branch.tar.gz
fix bug when pushing ReadBuffer state for GL_PIXEL_MODE_BITtexman_0_1_branch
-rw-r--r--src/mesa/main/attrib.c2
1 files changed, 2 insertions, 0 deletions
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;