]> git.cworth.org Git - apitrace/commit
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)
commit5ff3857d42008bc7fde6ebae56710ecd311fef64
treefa2c4842ec0da419be731ae0d5ea5d278e2c1e07
parentbbbbe704e71b215810c7bc59b7abca2c853e51c0
trim: Fix bug linking incorrect programs to shaders through samplers.

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.
cli/cli_trim.cpp