summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstorage.c
diff options
context:
space:
mode:
authorMikko Juola <mikjuo@gmail.com>2013-07-30 06:36:43 +0300
committerBrian Paul <brianp@vmware.com>2013-07-31 07:26:55 -0600
commite404105e7dc192ddfb88b80df4238a97caedf32e (patch)
tree27fb11eb0a24232ffc67c0acc69fd0d3632942f1 /src/mesa/main/texstorage.c
parent3f3f66fd94c1790de1b97839e58e35c47836c836 (diff)
downloadexternal_mesa3d-e404105e7dc192ddfb88b80df4238a97caedf32e.zip
external_mesa3d-e404105e7dc192ddfb88b80df4238a97caedf32e.tar.gz
external_mesa3d-e404105e7dc192ddfb88b80df4238a97caedf32e.tar.bz2
mesa: fix proxy textures becoming immutable and unusable
glTexStorage*() functions make textures immutable. This carries on to proxy textures. Error checking in texture storage functions prevents proxy textures from working after first time because internally, they became immutable. This commit makes the error checking ignore the immutability flag when working with proxy textures. Reviewed-by: Brian Paul <brianp@vmware.com> Cc: mesa-stable@lists.freedesktop.org
Diffstat (limited to 'src/mesa/main/texstorage.c')
-rw-r--r--src/mesa/main/texstorage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c
index 7798897..7bd8652 100644
--- a/src/mesa/main/texstorage.c
+++ b/src/mesa/main/texstorage.c
@@ -342,7 +342,7 @@ tex_storage_error_check(struct gl_context *ctx, GLuint dims, GLenum target,
}
/* Check if texObj->Immutable is set */
- if (texObj->Immutable) {
+ if (!_mesa_is_proxy_texture(target) && texObj->Immutable) {
_mesa_error(ctx, GL_INVALID_OPERATION, "glTexStorage%uD(immutable)",
dims);
return GL_TRUE;