]> git.cworth.org Git - apitrace/commitdiff
trim: Fix bug linking incorrect programs to shaders through samplers.
authorCarl Worth <cworth@cworth.org>
Tue, 4 Sep 2012 18:49:13 +0000 (11:49 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 22 Nov 2012 08:03:14 +0000 (08:03 +0000)
Previously, the code was mapping locations returned by
glGetUniformLocation and looking in the location map to try ot
determine which program to link in a glUniform1i call. This was
entirely bogus, as distinct programs do not have distinct location
spaces.

The correct answer is to simply track the currently active program and
link it to textures being bound to shaders.


No differences found