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:24:18 +0000 (15:24 -0700)
commit517401af07ea17a7e88659e6ba95a0628ff826b3
treef7f2e6621ea245334cd0824afb0a0106f7ada30a
parentdf94fd17647937975df031dcaa1ac24b2d79ce1b
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