summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/shader_api.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-11-06 15:04:11 -0700
committerBrian Paul <[email protected]>2008-11-06 15:24:18 -0700
commit517401af07ea17a7e88659e6ba95a0628ff826b3 (patch)
treef7f2e6621ea245334cd0824afb0a0106f7ada30a /src/mesa/shader/shader_api.h
parentdf94fd17647937975df031dcaa1ac24b2d79ce1b (diff)
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.
Diffstat (limited to 'src/mesa/shader/shader_api.h')
-rw-r--r--src/mesa/shader/shader_api.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/shader/shader_api.h b/src/mesa/shader/shader_api.h
index e7f12669156..ec1996ee98d 100644
--- a/src/mesa/shader/shader_api.h
+++ b/src/mesa/shader/shader_api.h
@@ -80,6 +80,10 @@ _mesa_lookup_shader(GLcontext *ctx, GLuint name);
extern void
+_mesa_update_shader_textures_used(struct gl_program *prog);
+
+
+extern void
_mesa_use_program(GLcontext *ctx, GLuint program);