diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2006-08-04 13:41:25 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2006-08-04 13:41:25 +0000 |
commit | 5c488dcab2cef6c851e9d54f03168e4dee805102 (patch) | |
tree | 7d1d03e1faade3c9102f44ab8d600a119b11ab20 /src | |
parent | 21dc092324bf4491b3dc9b8882115e482993db1a (diff) | |
download | external_mesa3d-5c488dcab2cef6c851e9d54f03168e4dee805102.zip external_mesa3d-5c488dcab2cef6c851e9d54f03168e4dee805102.tar.gz external_mesa3d-5c488dcab2cef6c851e9d54f03168e4dee805102.tar.bz2 |
fix bug when pushing ReadBuffer state for GL_PIXEL_MODE_BIT
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/attrib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 1f292de..ef970ad 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; |