mesa: Remove pointless comparison of unsigned integer with a negative constant.
authorVinson Lee <vlee@vmware.com>
Mon, 15 Feb 2010 10:01:20 +0000 (02:01 -0800)
committerVinson Lee <vlee@vmware.com>
Mon, 15 Feb 2010 10:01:20 +0000 (02:01 -0800)
src/mesa/shader/prog_execute.c

index aea4b074b3926ffdd029df0d3a45071031a72577..ee422e7ec8f68d163522df462708303d8ae0e472 100644 (file)
@@ -1780,15 +1780,10 @@ _mesa_execute_program(GLcontext * ctx,
          break;
       case OPCODE_PRINT:
          {
-            if (inst->SrcReg[0].File != -1) {
-               GLfloat a[4];
-               fetch_vector4(&inst->SrcReg[0], machine, a);
-               _mesa_printf("%s%g, %g, %g, %g\n", (const char *) inst->Data,
-                            a[0], a[1], a[2], a[3]);
-            }
-            else {
-               _mesa_printf("%s\n", (const char *) inst->Data);
-            }
+            GLfloat a[4];
+            fetch_vector4(&inst->SrcReg[0], machine, a);
+            _mesa_printf("%s%g, %g, %g, %g\n", (const char *) inst->Data,
+                         a[0], a[1], a[2], a[3]);
          }
          break;
       case OPCODE_END: