From: Vinson Lee Date: Thu, 4 Mar 2010 09:10:44 +0000 (-0800) Subject: glsl: Remove unsigned greater than or equal zero comparison. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0dd40cc20af78146c1d1d3ad1df0652b7cedc078;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 809355c56c9..96acad1f734 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -1754,7 +1754,7 @@ swizzle_to_writemask(slang_assemble_ctx *A, GLuint swizzle, /* end */ break; } - assert(swz >= 0 && swz <= 3); + assert(swz <= 3); if (swizzle != SWIZZLE_XXXX && swizzle != SWIZZLE_YYYY &&