diff options
author | Brian Paul <[email protected]> | 2016-01-11 18:22:50 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-01-13 08:01:56 -0700 |
commit | 235a2995345f330b1af0ac9d11a22343d5934356 (patch) | |
tree | 9cbf93a47d3bf5a65c8687cf52947778cfea1357 /src/mesa/state_tracker/st_copytex.c | |
parent | 2065ffb4cfc8e607d0a84ed85a04f9bb43ad79cc (diff) |
st/mesa: fix incorrect buffer token passed to _mesa_BindFramebuffer()
I added this code right at the end, and got it wrong.
Only used by the WGL_ARB_render_texture code.
Reviewed-by: Jose Fonseca <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_copytex.c')
-rw-r--r-- | src/mesa/state_tracker/st_copytex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_copytex.c b/src/mesa/state_tracker/st_copytex.c index d246d8b6a71..4e0fd790d43 100644 --- a/src/mesa/state_tracker/st_copytex.c +++ b/src/mesa/state_tracker/st_copytex.c @@ -59,7 +59,7 @@ st_copy_framebuffer_to_texture(GLenum srcBuffer, _mesa_GetIntegerv(GL_READ_BUFFER, &readBufSave); /* Read from the winsys buffer */ - _mesa_BindFramebuffer(GL_READ_BUFFER, 0); + _mesa_BindFramebuffer(GL_READ_FRAMEBUFFER, 0); _mesa_ReadBuffer(srcBuffer); /* copy image from pbuffer to texture */ @@ -136,5 +136,5 @@ st_copy_framebuffer_to_texture(GLenum srcBuffer, /* restore readbuffer */ _mesa_ReadBuffer(readBufSave); - _mesa_BindFramebuffer(GL_READ_BUFFER, readFBOSave); + _mesa_BindFramebuffer(GL_READ_FRAMEBUFFER, readFBOSave); } |