Fix program refcounting assertion failure during context tear-down
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 19 May 2008 14:43:36 +0000 (08:43 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 19 May 2008 14:43:36 +0000 (08:43 -0600)
commitfbfe2a58de8a9ca31164b4c6f26191b851fe939d
tree3c5a386386fe49601b5360b3b52e041b9afbab2f
parentfd59f19cd2388519265dfba3d28e5281df6f4ba0
Fix program refcounting assertion failure during context tear-down

When purging the program hash table, the refcount _should_ be one since
the program is referenced by the hash table.  Need to explicitly set to
zero before calling delete().

Also, purge high-level shader hash tables before low-level program hash tables.
src/mesa/main/context.c