瀏覽代碼

fix bug when pushing ReadBuffer state for GL_PIXEL_MODE_BIT

tags/texmem_0_2_20060912
Brian Paul 19 年之前
父節點
當前提交
5c488dcab2
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      src/mesa/main/attrib.c

+ 2
- 0
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;

Loading…
取消
儲存