mesa: don't call TexImage driver hooks for zero-sized images
authorBrian Paul <brianp@vmware.com>
Tue, 2 Oct 2012 15:51:12 +0000 (09:51 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 4 Oct 2012 13:59:11 +0000 (07:59 -0600)
commit91d84096497ff538f55591f7e6bb0b563726db8d
treef406edab37fd20586452a50529a38e76d089719a
parent185d6df3c10a7ff5defe163af614bfc41088910b
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.
src/mesa/main/teximage.c