glsl: Remove unsigned greater than or equal zero comparison.
authorVinson Lee <vlee@vmware.com>
Thu, 4 Mar 2010 09:10:44 +0000 (01:10 -0800)
committerVinson Lee <vlee@vmware.com>
Thu, 4 Mar 2010 09:10:44 +0000 (01:10 -0800)
src/mesa/shader/slang/slang_codegen.c

index 809355c56c993fa568777fa168a525f5b17311a5..96acad1f73469f98d583dec22d6825e19a565e89 100644 (file)
@@ -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 &&