mesa/main: fix another undefined left shift
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 30 Apr 2016 04:38:09 +0000 (23:38 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 7 May 2016 21:45:04 +0000 (16:45 -0500)
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/uniforms.c

index acb2d06dfd8d80e2494e0e37f191ad57449d3240..35b93d323b50098223ff626a81bdcb5bbce1ff7d 100644 (file)
@@ -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));