diff options
author | Brian Paul <[email protected]> | 2008-11-10 12:33:17 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-11-10 12:39:36 -0700 |
commit | 2d76a0d77af7be9539f89cba37ce84338c1cdda4 (patch) | |
tree | 6e722f4d0f8356707ed9402dc9eeeb5dc56704b4 /src/mesa/shader/prog_parameter.h | |
parent | 379ff8c9567940ebff44870cf7b0202882445fa6 (diff) |
mesa: track initialization status of uniform variables. Plus, asst clean-ups.
Diffstat (limited to 'src/mesa/shader/prog_parameter.h')
-rw-r--r-- | src/mesa/shader/prog_parameter.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_parameter.h b/src/mesa/shader/prog_parameter.h index e8d3e9ec336..0c35198de7e 100644 --- a/src/mesa/shader/prog_parameter.h +++ b/src/mesa/shader/prog_parameter.h @@ -49,6 +49,7 @@ struct gl_program_parameter GLenum DataType; /**< GL_FLOAT, GL_FLOAT_VEC2, etc */ GLuint Size; /**< Number of components (1..4) */ GLboolean Used; /**< Helper flag for GLSL uniform tracking */ + GLboolean Initialized; /**< Has the ParameterValue[] been set? */ /** * A sequence of STATE_* tokens and integers to identify GL state. */ @@ -111,7 +112,8 @@ _mesa_add_unnamed_constant(struct gl_program_parameter_list *paramList, extern GLint _mesa_add_uniform(struct gl_program_parameter_list *paramList, - const char *name, GLuint size, GLenum datatype); + const char *name, GLuint size, GLenum datatype, + const GLfloat *values); extern void _mesa_use_uniform(struct gl_program_parameter_list *paramList, |