projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9504e7
)
glsl: Remove unsigned greater than or equal zero comparison.
author
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 09:35:28 +0000
(
01:35
-0800)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 4 Mar 2010 09:35:28 +0000
(
01:35
-0800)
src/mesa/shader/slang/slang_codegen.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/slang/slang_codegen.c
b/src/mesa/shader/slang/slang_codegen.c
index 96acad1f73469f98d583dec22d6825e19a565e89..ecb2f6d5c1e084c02ef6a51e971c669f335883b1 100644
(file)
--- a/
src/mesa/shader/slang/slang_codegen.c
+++ b/
src/mesa/shader/slang/slang_codegen.c
@@
-4208,7
+4208,7
@@
swizzle_size(GLuint swizzle)
GLuint size = 0, i;
for (i = 0; i < 4; i++) {
GLuint swz = GET_SWZ(swizzle, i);
- size += (swz
>= 0 && swz
<= 3);
+ size += (swz <= 3);
}
return size;
}