mesa: fix proxy textures becoming immutable and unusable
authorMikko Juola <mikjuo@gmail.com>
Tue, 30 Jul 2013 03:36:43 +0000 (06:36 +0300)
committerBrian Paul <brianp@vmware.com>
Wed, 31 Jul 2013 13:26:55 +0000 (07:26 -0600)
commite404105e7dc192ddfb88b80df4238a97caedf32e
tree27fb11eb0a24232ffc67c0acc69fd0d3632942f1
parent3f3f66fd94c1790de1b97839e58e35c47836c836
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
src/mesa/main/texstorage.c