projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e1cf8b
)
mesa/main: fix another undefined left shift
author
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Sat, 30 Apr 2016 04:38:09 +0000
(23:38 -0500)
committer
Nicolai 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
patch
|
blob
|
history
diff --git
a/src/mesa/main/uniforms.c
b/src/mesa/main/uniforms.c
index acb2d06dfd8d80e2494e0e37f191ad57449d3240..35b93d323b50098223ff626a81bdcb5bbce1ff7d 100644
(file)
--- 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 & (1
u
<< s)) {
GLuint unit = shader->SamplerUnits[s];
GLuint tgt = shader->SamplerTargets[s];
assert(unit < ARRAY_SIZE(prog->TexturesUsed));