summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-07-27 22:23:07 -0600
committerBrian Paul <brianp@vmware.com>2011-07-27 22:23:07 -0600
commit60186ff497ffa8a32d90f5a22ea0467766b0a09b (patch)
tree15eabf1f5f800ab2d0bb349ddb441b36ede5bab4
parent84d1c17d4f25c43bb0acdad3dc61de71a31fbdfc (diff)
mesa: restore _mesa_lock/unlock_texture() calls in glGetTexImage()map-texture-image-v4
-rw-r--r--src/mesa/main/texgetimage.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index 4834788db4e..c38d60ad566 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -789,8 +789,12 @@ _mesa_GetnTexImageARB( GLenum target, GLint level, GLenum format,
format, type);
}
- ctx->Driver.GetTexImage(ctx, target, level, format, type, pixels,
- texObj, texImage);
+ _mesa_lock_texture(ctx, texObj);
+ {
+ ctx->Driver.GetTexImage(ctx, target, level, format, type, pixels,
+ texObj, texImage);
+ }
+ _mesa_unlock_texture(ctx, texObj);
}