mesa: don't call TexImage driver hooks for zero-sized images
authorBrian Paul <brianp@vmware.com>
Fri, 5 Oct 2012 22:47:40 +0000 (16:47 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 9 Oct 2012 13:47:43 +0000 (07:47 -0600)
commit32faf7ab0de8b88bb15a2cb262a73c411dce9d0d
tree12fba768ba3706f5dcbf05d8d7d934dd366c00e5
parent161aababc659e23c4a8523366a31f63b3d14e280
mesa: don't call TexImage driver hooks for zero-sized images

This simply avoids some failed assertions but there's no reason to
call the driver hooks for storing a tex image if its size is zero.

Note: This is a candidate for the stable branches.
(cherry picked from commit 91d84096497ff538f55591f7e6bb0b563726db8d)
src/mesa/main/teximage.c