mesa: move _mesa_error() call in compressedteximage()
authorBrian Paul <brianp@vmware.com>
Thu, 1 Dec 2011 23:37:49 +0000 (16:37 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 2 Dec 2011 14:22:39 +0000 (07:22 -0700)
commit89efc1b839591473d0a448dc1087a5deb56579c7
tree13b8cc8e6f45d29fc95d89788a5ad83cf737fbac
parent9ec5050898877baa6120fd9a04464651c7cb28ad
mesa: move _mesa_error() call in compressedteximage()

We shouldn't call _mesa_error() if the target is a proxy texture.
Errors are handled later in the function.
Fixes a Coverity warning.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/main/teximage.c