commit | 32d86eb28aedd01a03ceab746214a8db2a4cbbab | [log] [tgz] |
---|---|---|
author | Brian <brian.paul@tungstengraphics.com> | Thu Aug 16 18:52:48 2007 +0100 |
committer | Brian <brian.paul@tungstengraphics.com> | Thu Aug 16 18:52:48 2007 +0100 |
tree | 2a6beb7c18ca16070f1e7ed01a89b590c623a92a | |
parent | c033ccc36d08c669dcdfbfc1cf89e472e8211c5f [diff] |
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.