From 0dd40cc20af78146c1d1d3ad1df0652b7cedc078 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 4 Mar 2010 01:10:44 -0800 Subject: glsl: Remove unsigned greater than or equal zero comparison. --- src/mesa/shader/slang/slang_codegen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index 809355c56c..96acad1f73 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 && -- cgit v1.2.3