summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texobj.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2005-02-12 18:43:38 +0000
committerBrian Paul <[email protected]>2005-02-12 18:43:38 +0000
commit2752177ade76f36229dda8da42948b173bdf08bc (patch)
tree194dade6e88ac46490987a3cffed1b02ef36944a /src/mesa/main/texobj.c
parentf640ee2f6e1b69e332b46e48b3b4e9f33bbc6e39 (diff)
unlock mutex upon error return (Jeff Muizelaar)
Diffstat (limited to 'src/mesa/main/texobj.c')
-rw-r--r--src/mesa/main/texobj.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index e6e39d4b434..488edab8725 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -565,6 +565,7 @@ _mesa_GenTextures( GLsizei n, GLuint *textures )
GLenum target = 0;
texObj = (*ctx->Driver.NewTextureObject)( ctx, name, target);
if (!texObj) {
+ _glthread_UNLOCK_MUTEX(GenTexturesLock);
_mesa_error(ctx, GL_OUT_OF_MEMORY, "glGenTextures");
return;
}