mesa: add missing texture integer test in glTexSubImage()
authorBrian Paul <brianp@vmware.com>
Wed, 15 Feb 2012 22:29:29 +0000 (15:29 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 16 Feb 2012 16:37:11 +0000 (09:37 -0700)
commit6f3d91840945fbd9221a247e4f95b32c4051f202
tree5fd71790f49604f045fe984897b791ef6ab65b66
parentb0b81218132b6952de987dca21b9750d8d51b7f0
mesa: add missing texture integer test in glTexSubImage()

If the texture format is integer, the incoming user data must also be
integer (and similarly for non-integer textures).

NOTE: This is a candidate for the stable branches.

Reviewed-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/teximage.c