mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
mesa/main: fix another undefined left shift
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>
This commit is contained in:
parent
3e1cf8bf3f
commit
bdad1393a0
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue