Fix program refcounting assertion failure during context tear-down
authorBrian Paul <brian.paul@tungstengraphics.com>
Mon, 19 May 2008 14:59:41 +0000 (08:59 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Mon, 19 May 2008 14:59:41 +0000 (08:59 -0600)
commit62f96ddbbc2549bd4d50016f571cd4d1f6f6a7d6
treec87c81922da4edcf6113fc21ff1ada6cd4734b41
parenta0bfeb0c3ca58a1f4d978f2aaa343ed4009de079
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 tabl

cherry-picked from master
src/mesa/main/context.c