mesa: Remove pointless comparison of unsigned integer with a negative constant.

This commit is contained in:
Vinson Lee 2010-02-15 02:01:20 -08:00
parent f0e1499805
commit a05fdbcb71
1 changed files with 4 additions and 9 deletions

View File

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