mesa: don't signal _NEW_TEXTURE in TexSubImage() functions
authorBrian Paul <brianp@vmware.com>
Sat, 1 Feb 2014 00:38:35 +0000 (17:38 -0700)
committerBrian Paul <brianp@vmware.com>
Sun, 2 Feb 2014 13:52:37 +0000 (06:52 -0700)
commit20fedfd80aa2402d2033215c538894c9f81e422a
treed13c8b13aedb11044d09b66b2abcfce96e9c10b0
parentc55e3e6811413ce5c3aabfcf8dfcf5eb8a53499e
mesa: don't signal _NEW_TEXTURE in TexSubImage() functions

glTexSubImage(), glCopyTexSubImage() and glCompressedTexSubImage()
only change the texel data, not other state like texture size or format.
If a driver really needs do something special it can hook into the
corresponding driver functions or Map/UnmapTextureImage().

This should avoid some needless state validation effort.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/teximage.c