From: Vinson Lee Date: Thu, 4 Mar 2010 09:35:28 +0000 (-0800) Subject: glsl: Remove unsigned greater than or equal zero comparison. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac610ab830287029b2636522625f56ed09c3870b;p=mesa.git glsl: Remove unsigned greater than or equal zero comparison. --- diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index 96acad1f734..ecb2f6d5c1e 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; }