mesa: handle MapTextureImage() failures in mipmap generation code
authorBrian Paul <brianp@vmware.com>
Sat, 26 Nov 2011 16:10:54 +0000 (09:10 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 28 Nov 2011 15:13:13 +0000 (08:13 -0700)
commitc5012c1d56dfbf11cd631b3b37890b40d56ac884
treefd5c8e9a71a597dd2dd4a14b29b84152018521c4
parente9840852998f8d66b31c3653c1010b6df2ed4c76
mesa: handle MapTextureImage() failures in mipmap generation code

And handle potential malloc failures too.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/mipmap.c