mesa: avoid calling _mesa_test_framebuffer_completeness() more than needed
authorBrian Paul <brianp@vmware.com>
Wed, 21 Jan 2009 23:28:38 +0000 (16:28 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 22 Jan 2009 22:21:17 +0000 (15:21 -0700)
commit7296636ad03f58c7b7f673109515c1659a36a899
tree79fba69f01fb7919d11c44a0d4fafe91aacab3b7
parentd0f13fa7d70c57e698cce9fbde399e80f7afcf47
mesa: avoid calling _mesa_test_framebuffer_completeness() more than needed

When we change a FBO's attachments, set _Status=0.
Before using an FBO, check if status != GL_FRAMEBUFFER_COMPLETE.
Also, fix missing GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE status.
src/mesa/main/fbobject.c
src/mesa/main/framebuffer.c