Fix a few more problems with freeing FBOs/textures during context destruction.
authorBrian <brian.paul@tungstengraphics.com>
Tue, 14 Aug 2007 10:56:59 +0000 (11:56 +0100)
committerBrian <brian.paul@tungstengraphics.com>
Tue, 14 Aug 2007 10:58:37 +0000 (11:58 +0100)
commitdc73217294efcba83c46183ed2f208250217486f
tree1a79d59f479740d58c2bad548a386efa8c71889f
parent5dab3bf4bc94ac45e4d25c75dc09fbd6f4a6025e
Fix a few more problems with freeing FBOs/textures during context destruction.

Free FBOs before textures since the later may be referenced by the former.
Need to bind the context we're destroying if there isn't a current context
so that ctx->DeleteTexture() etc can be used.
src/mesa/main/context.c
src/mesa/main/texobj.c