always go through glBindTexture2D to ensure consistent cache
Merge branch 'fixstatecache' into mydevelop