From 0819b25dfba326c3d32b3b0af5d77e53d1973890 Mon Sep 17 00:00:00 2001 From: "Xiang, Haihao" Date: Mon, 17 Mar 2008 16:48:36 +0800 Subject: [PATCH] mesa: avoid to unlock an unlocked array in _mesa_PopClientAttrib --- src/mesa/main/attrib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.30.2