summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-03-04 01:35:28 -0800
committerVinson Lee <vlee@vmware.com>2010-03-04 01:35:28 -0800
commitac610ab830287029b2636522625f56ed09c3870b (patch)
tree0b4921405bcd0a6924b1612fbe33dce90fa89095 /src
parentf9504e75f02586a8561733e0e2711c65efa2979d (diff)
downloadexternal_mesa3d-ac610ab830287029b2636522625f56ed09c3870b.zip
external_mesa3d-ac610ab830287029b2636522625f56ed09c3870b.tar.gz
external_mesa3d-ac610ab830287029b2636522625f56ed09c3870b.tar.bz2
glsl: Remove unsigned greater than or equal zero comparison.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/shader/slang/slang_codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c
index 96acad1..ecb2f6d 100644
--- 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;
}