OSDN Git Service
(root)
/
android-x86
/
external-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
96acad1
..
ecb2f6d
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;
}