Add mismatch check for glGetTexImage or it will return -1 and may lead to segment...
authorJian Zhao <jian.j.zhao@intel.com>
Tue, 13 Dec 2011 05:31:41 +0000 (13:31 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 14 Dec 2011 09:22:47 +0000 (17:22 +0800)
commit606d3a3c3de94665e47df47b48596293d588a420
treeedd4e52c3ce682cefbb40b375ebb63ed6eeaff8c
parentc87cb98bb4e893e04831bf68231f5ed42e0b5b6f
Add mismatch check for glGetTexImage or it will return -1 and may lead to segment fault.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texgetimage.c