]> git.cworth.org Git - apitrace/commit
trim: Perform correct state tracking for glActiveTexture
authorCarl Worth <cworth@cworth.org>
Fri, 17 Aug 2012 15:06:51 +0000 (08:06 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 22 Nov 2012 08:03:22 +0000 (08:03 +0000)
commit65692823c1260168ff09e97fa562fa59b7258a59
treebb2faa0b11a87be6204a3105af4e65855510118b
parentab82b3b949caad0be4e0759a0bce6fa9fd76d2f5
trim: Perform correct state tracking for glActiveTexture

Not all glBindTexture calls are created equal. With calls to
glActiveTexture intervening, calls to glBindTexture are actually
operating on indenpendent texture units.

It's actually quite easy to simple insert the number of the currently
active texture unit into the name of the texture target resource.
cli/cli_trim.cpp