mesa: fix error check for zero-sized compressed subtexture
authorBrian Paul <brianp@vmware.com>
Fri, 5 Oct 2012 22:59:27 +0000 (16:59 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 9 Oct 2012 13:47:43 +0000 (07:47 -0600)
commite75051d1967350ceff0209dde24ae42696b13b5c
treee3824df7d4a2a1d7564ba72e2f5da8cdf34c15b1
parent32faf7ab0de8b88bb15a2cb262a73c411dce9d0d
mesa: fix error check for zero-sized compressed subtexture

For glCompressedTexSubImage, width or height = 0 is legal.
Fixes a failure in piglit's s3tc-errors test.

This is for the 9.0 and 8.0 branches.  Already fixed on master.
src/mesa/main/teximage.c