mesa: update the shader programs->TexturesUsed array at link time
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 6 Nov 2008 22:04:11 +0000 (15:04 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 6 Nov 2008 22:04:11 +0000 (15:04 -0700)
commit2f1a29654a94a4194fa452e8049c4db67629e545
treec0a27757b4cb02c4c4ad40913922796842bb80bf
parent678f80b347801d925c07a774faee1ed3f716de15
mesa: update the shader programs->TexturesUsed array at link time

If an application never calls glUniform() to set sampler variable values
they'll remain 0 (the default value/unit).
Now call _mesa_update_shader_textures_used() at link time in case glUniform()
is never called.  program->TextureUsed[] will then be correct for state
validation.
src/mesa/shader/shader_api.c
src/mesa/shader/shader_api.h
src/mesa/shader/slang/slang_link.c