intel: fix potential segfault error at intel_(un)map_texture_image
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 26 Sep 2011 01:23:06 +0000 (09:23 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 26 Sep 2011 01:23:06 +0000 (09:23 +0800)
commit455a19b1b3d7ca0a40c65d89e45209dbd8ac7b35
tree9be49332607212afc10b9f8eebea03f6d3b622e1
parent65b8eea0644fdb7e9150d0e98c06d7f8ba6d5302
intel: fix potential segfault error at intel_(un)map_texture_image

intel_image->mt might be NULL, say with border width set. It then would
trigger a segfault at intel_map/unmap_texture_image function.

This would fix the oglc misctest(basic.textureBorderIgnore) fail.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
src/mesa/drivers/dri/intel/intel_tex.c