diff options
author | Xiang, Haihao <[email protected]> | 2008-03-17 16:48:36 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-03-17 16:48:36 +0800 |
commit | 0819b25dfba326c3d32b3b0af5d77e53d1973890 (patch) | |
tree | b0caf20b309a942208dac5602b1386aee7c6dca0 /src | |
parent | 07ff7c2285d9cb10ca52d7de7a6b86fd00379d6f (diff) |
mesa: avoid to unlock an unlocked array in _mesa_PopClientAttrib
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/attrib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/attrib.c b/src/mesa/main/attrib.c index 66e6aadc0f0..80c989e5649 100644 --- a/src/mesa/main/attrib.c +++ b/src/mesa/main/attrib.c @@ -1401,7 +1401,7 @@ _mesa_PopClientAttrib(void) ctx->Array.ActiveTexture = data->ActiveTexture; if (data->LockCount != 0) _mesa_LockArraysEXT(data->LockFirst, data->LockCount); - else + else if (ctx->Array.LockCount) _mesa_UnlockArraysEXT(); _mesa_BindVertexArrayAPPLE( data->ArrayObj->Name ); |