Commit bdad1393 authored by Nicolai Hähnle's avatar Nicolai Hähnle

mesa/main: fix another undefined left shift

Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <michel.daenzer@amd.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
parent 3e1cf8bf
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment