mesa: Flag _NEW_BUFFERS when unbinding an attachment on glDeleteTextures.
authorEric Anholt <eric@anholt.net>
Wed, 25 May 2011 23:37:09 +0000 (16:37 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 18 Jun 2011 22:26:26 +0000 (15:26 -0700)
commit001e07144332203bb30993eed4181b0e411a18be
treead080c2b34ed77f806066890f4ac5b6d3926e1fb
parenta5a36d9b158a317daa1cf10a6b6ed2bed6b22750
mesa: Flag _NEW_BUFFERS when unbinding an attachment on glDeleteTextures.

The _ColorDrawBuffers[] wouldn't get updated despite us having updated
what it depends on (Attachments[]->Renderbuffer).  Other callers of
_mesa_remove_attachment are already flagging _NEW_BUFFERS for other
reasons.  The specific bug report that led to this fix (and
the fbo-finish-deleted testcase) was fixed by
23b6f9606dc247488835745668b3686218612536, though.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texobj.c