mesa: Implement mutex/locking around texture object reference counting.
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 4 Jul 2008 16:29:15 +0000 (10:29 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 4 Jul 2008 16:29:15 +0000 (10:29 -0600)
commit2fa7b3f78639114aec42fcbbfc29d3645832708b
treea0dc1ff3b4181e61f5bdf16ffbc3238f22c5c8f8
parent9ca1c62a963ca7024c4bccf83af3f90955cd5068
mesa: Implement mutex/locking around texture object reference counting.

Use new _mesa_reference_texobj() function for referencing/unreferencing
textures.  Add new assertions/tests to try to detect invalid usage of
deleted textures.

cherry-picked from master (9e01b915f1243a3f551cb795b7124bd1e52ca15f)
src/mesa/main/attrib.c
src/mesa/main/context.c
src/mesa/main/fbobject.c
src/mesa/main/framebuffer.c
src/mesa/main/mtypes.h
src/mesa/main/texobj.c
src/mesa/main/texobj.h
src/mesa/main/texstate.c