intel: Kill dead code in intel_miptree_copy_teximage()
authorChad Versace <chad@chad-versace.us>
Mon, 24 Oct 2011 20:55:43 +0000 (13:55 -0700)
committerChad Versace <chad@chad-versace.us>
Tue, 25 Oct 2011 18:28:32 +0000 (11:28 -0700)
commit882c83377da57d41c62eb38484305523c3d19dd7
tree03a6c591150b9442fcc80ec2689eac9a2f248aa2
parent265f55e6273aafc8e7607cd70a4b9756f7cb6bff
intel: Kill dead code in intel_miptree_copy_teximage()

Kill the code paths taken when src_mt is null. It is never null, otherwise
there would be a segfault on line 4 of this function:
    GLuint width = src_mt->level[level].width;

(Some interleaved lines in the diff make the real diff non-obvious. All
I did was delete some code and then left-shifted what remained to correct
the indentation.)

Reviewed-by: Eric Anholt <eric@aholt.net>
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c