aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/uniforms.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-04-29 23:38:09 -0500
committerNicolai Hähnle <[email protected]>2016-05-07 16:45:04 -0500
commitbdad1393a04bd1c2ad99ed62978849796db162ed (patch)
treeac51a287e3e4a437de09e5f87210398cbd238b65 /src/mesa/main/uniforms.c
parent3e1cf8bf3ffd883417638bcd46fe25604dc0c313 (diff)
mesa/main: fix another undefined left shift
Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Michel Dänzer <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/uniforms.c')
-rw-r--r--src/mesa/main/uniforms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c
index acb2d06dfd8..35b93d323b5 100644
--- a/src/mesa/main/uniforms.c
+++ b/src/mesa/main/uniforms.c
@@ -78,7 +78,7 @@ _mesa_update_shader_textures_used(struct gl_shader_program *shProg,
shProg->SamplersValidated = GL_TRUE;
for (s = 0; s < MAX_SAMPLERS; s++) {
- if (prog->SamplersUsed & (1 << s)) {
+ if (prog->SamplersUsed & (1u << s)) {
GLuint unit = shader->SamplerUnits[s];
GLuint tgt = shader->SamplerTargets[s];
assert(unit < ARRAY_SIZE(prog->TexturesUsed));