diff options
author | Brian <[email protected]> | 2007-08-13 11:29:46 +0100 |
---|---|---|
committer | Brian <[email protected]> | 2007-08-13 11:29:46 +0100 |
commit | 9e01b915f1243a3f551cb795b7124bd1e52ca15f (patch) | |
tree | 8813956c0705bb9b8b85948480320b3ea5cfede8 /src/mesa/main/attrib.c | |
parent | 6f4725088842fbc0069aeb51f41907b87e0a8f08 (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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index b422198f929..36e438a53cc 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -355,6 +355,7 @@ _mesa_PushAttrib(GLbitfield mask) ctx->Texture.Unit[u].Current1DArray->RefCount++; ctx->Texture.Unit[u].Current2DArray->RefCount++; } + attr = MALLOC_STRUCT( gl_texture_attrib ); MEMCPY( attr, &ctx->Texture, sizeof(struct gl_texture_attrib) ); /* copy state of the currently bound texture objects */ |