Browse Source

fix bug when pushing ReadBuffer state for GL_PIXEL_MODE_BIT

tags/texmem_0_2_20060912
Brian Paul 19 years ago
parent
commit
5c488dcab2
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/mesa/main/attrib.c

+ 2
- 0
src/mesa/main/attrib.c View File

@@ -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;

Loading…
Cancel
Save