Module: Mesa
Branch: master
Commit: bdad1393a04bd1c2ad99ed62978849796db162ed
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bdad1393a04bd1c2ad99ed62978849796db162ed

Author: Nicolai Hähnle <[email protected]>
Date:   Fri Apr 29 23:38:09 2016 -0500

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]>

---

 src/mesa/main/uniforms.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/uniforms.c b/src/mesa/main/uniforms.c
index acb2d06..35b93d3 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));

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to