swrast: move null pointer check earlier in _swrast_map_teximage()
authorBrian Paul <brianp@vmware.com>
Wed, 23 Apr 2014 15:57:11 +0000 (09:57 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 24 Apr 2014 14:16:01 +0000 (08:16 -0600)
commit1a7fa8b2ebad2e07f57a430c8c77558bb07b0151
tree872d15030304aceed0007e02b2eab7ccdcfe1f09
parent5e81e6e268a4bdfa0017f9e340101c1d5696aea3
swrast: move null pointer check earlier in _swrast_map_teximage()

There's no reason to compute texel size, stride, etc. if there's no
image data to map.

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