Rework the GL_READ_BUFFER, GL_DRAW_BUFFER state repairs that Roland previously did.
authorBrian <brian.paul@tungstengraphics.com>
Thu, 16 Aug 2007 17:52:48 +0000 (18:52 +0100)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 16 Aug 2007 17:52:48 +0000 (18:52 +0100)
commit32d86eb28aedd01a03ceab746214a8db2a4cbbab
tree2a6beb7c18ca16070f1e7ed01a89b590c623a92a
parentc033ccc36d08c669dcdfbfc1cf89e472e8211c5f
Rework the GL_READ_BUFFER, GL_DRAW_BUFFER state repairs that Roland previously did.

Basically, in update_framebuffer() (which should be called after an FBO is bound
with MakeCurrent or BindFramebuffer) we check if the FBO is a window-system FBO.
If it is, update the FBO's GL_READ/DRAW_BUFFER state according to the context state.
Old code still in place but disabled with #if 0 / #endif.
src/mesa/main/buffers.c
src/mesa/main/buffers.h
src/mesa/main/context.c
src/mesa/main/fbobject.c
src/mesa/main/framebuffer.c