diff options
author | Brian Paul <brianp@vmware.com> | 2009-11-17 20:21:26 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-11-17 22:28:49 -0700 |
commit | e4b2a092660d626c9ba61d1e65b5d80bfe1d8c48 (patch) | |
tree | 64bc0370f485d545467bc058479508e56893d8d8 | |
parent | 9e5a87e7987bb81f3f551a0aeb72c0f1508786c8 (diff) |
st/mesa: null-out stImage->Map.Data in st_texture_image_unmap()
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 4 | ||||
-rw-r--r-- | src/mesa/state_tracker/st_texture.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 49af0a1650..9b38c21f16 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -748,7 +748,6 @@ done: if (stImage->pt && texImage->Map.Data) { st_texture_image_unmap(ctx->st, stImage); - texImage->Map.Data = NULL; } } @@ -990,7 +989,6 @@ st_get_tex_image(GLcontext * ctx, GLenum target, GLint level, /* Unmap */ if (stImage->pt) { st_texture_image_unmap(ctx->st, stImage); - texImage->Map.Data = NULL; } } @@ -1121,7 +1119,6 @@ done: if (stImage->pt) { st_texture_image_unmap(ctx->st, stImage); - texImage->Map.Data = NULL; } } @@ -1236,7 +1233,6 @@ st_CompressedTexSubImage2D(GLcontext *ctx, GLenum target, GLint level, if (stImage->pt) { st_texture_image_unmap(ctx->st, stImage); - texImage->Map.Data = NULL; } } diff --git a/src/mesa/state_tracker/st_texture.c b/src/mesa/state_tracker/st_texture.c index 3945822f66..55f6be5dcd 100644 --- a/src/mesa/state_tracker/st_texture.c +++ b/src/mesa/state_tracker/st_texture.c @@ -219,6 +219,8 @@ st_texture_image_unmap(struct st_context *st, screen->transfer_unmap(screen, stImage->transfer); screen->tex_transfer_destroy(stImage->transfer); + + stImage->base.Map.Data = NULL; } |