mesa: fix proxy textures not working with default texture binding
authorMikko Juola <mikjuo@gmail.com>
Tue, 30 Jul 2013 03:29:54 +0000 (06:29 +0300)
committerBrian Paul <brianp@vmware.com>
Wed, 31 Jul 2013 13:26:50 +0000 (07:26 -0600)
commit3f3f66fd94c1790de1b97839e58e35c47836c836
tree7087200ea7c2604fd3188cbc4dd3a4415bc66894
parentde7e3741ebca9fb794b890e00b5fed5b2bbb62a2
mesa: fix proxy textures not working with default texture binding

When working with the glTexStorage*() functions, the error checking
checks that a non-default (i.e., non-zero) texture is currently bound.
However, this check made glTexStorage*() functions fail with proxy
textures when the default texture is bound. Proxy textures do not care
about the current texture bindings so for them this check should not
be done.

Reviewed-by: Brian Paul <brianp@vmware.com>
Cc: mesa-stable@lists.freedesktop.org
src/mesa/main/texstorage.c