mesa: Don't bind DRAW/READ_FRAMEBUFFER separately without FBO blit support
authorErik Wien <wien@start.no>
Tue, 26 Jan 2010 20:19:30 +0000 (13:19 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 26 Jan 2010 20:19:32 +0000 (13:19 -0700)
commit68ca19afd7299fa9c686f95d53b7e14df37aba4c
tree549e54b3feb72e5a29b7b56ca802005a7ef721c2
parentcbecb8fc8e85cfafed7fd8fd0e2dd1143efcf62b
mesa: Don't bind DRAW/READ_FRAMEBUFFER separately without FBO blit support

If GL_EXT_framebuffer_blit was not supported _mesa_DeleteFramebuffersEXT
would raise an error when deleting the currently bound framebuffer. This
because it tried to bind the default DRAW- and READ_FRAMEBUFFER separately.
This patch binds the default FRAMEBUFFER instead in that case.

Encountered in the fbo/fbo-copyteximage piglit test on R600.

Patch cleaned up a bit by Brian Paul.
src/mesa/main/fbobject.c