summaryrefslogtreecommitdiff
path: root/src/mesa/main/attrib.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-13 11:28:52 +0100
committerBrian <brian.paul@tungstengraphics.com>2007-08-13 11:28:52 +0100
commite279a0a076b7a3c8d60138c19870784c260c9d67 (patch)
treed1cf332455c1fc74c86ed121b985d9a2dc51d721 /src/mesa/main/attrib.c
parent88c8aaed961c3aeb34237469e9635b09485c7a7d (diff)
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.
Diffstat (limited to 'src/mesa/main/attrib.c')
-rw-r--r--src/mesa/main/attrib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c
index 0b821cff44d..308a25ba575 100644
--- a/src/mesa/main/attrib.c
+++ b/src/mesa/main/attrib.c
@@ -349,6 +349,7 @@ _mesa_PushAttrib(GLbitfield mask)
ctx->Texture.Unit[u].CurrentCubeMap->RefCount++;
ctx->Texture.Unit[u].CurrentRect->RefCount++;
}
+
attr = MALLOC_STRUCT( gl_texture_attrib );
MEMCPY( attr, &ctx->Texture, sizeof(struct gl_texture_attrib) );
/* copy state of the currently bound texture objects */