diff options
author | José Fonseca <[email protected]> | 2008-06-24 11:34:46 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-06-24 11:34:46 +0900 |
commit | 18ec140ef27b6488bea9d54e21b08b0a3afbcafe (patch) | |
tree | c65033e375e12ed3ceed04fea934b5d8e57f6561 /src/mesa/shader/shader_api.c | |
parent | 80b359f574cd8565af46e0900d2da9dd0faf4291 (diff) |
mesa: Use appropriate unsigned/signed, float/integer types.
Diffstat (limited to 'src/mesa/shader/shader_api.c')
-rw-r--r-- | src/mesa/shader/shader_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/shader_api.c b/src/mesa/shader/shader_api.c index 856179e1d5b..97edb254003 100644 --- a/src/mesa/shader/shader_api.c +++ b/src/mesa/shader/shader_api.c @@ -1079,7 +1079,7 @@ update_textures_used(struct gl_program *prog) */ static void set_program_uniform(GLcontext *ctx, struct gl_program *program, GLint location, - GLenum type, GLint count, GLint elems, const void *values) + GLenum type, GLsizei count, GLint elems, const void *values) { if (program->Parameters->Parameters[location].Type == PROGRAM_SAMPLER) { /* This controls which texture unit which is used by a sampler */ @@ -1111,7 +1111,7 @@ set_program_uniform(GLcontext *ctx, struct gl_program *program, GLint location, } else { /* ordinary uniform variable */ - GLuint k, i; + GLsizei k, i; if (count * elems > program->Parameters->Parameters[location].Size) { _mesa_error(ctx, GL_INVALID_OPERATION, "glUniform(count too large)"); |