From 2752177ade76f36229dda8da42948b173bdf08bc Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 12 Feb 2005 18:43:38 +0000 Subject: unlock mutex upon error return (Jeff Muizelaar) --- src/mesa/main/texobj.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/main/texobj.c') 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; } -- cgit v1.2.3