diff options
author | Vinson Lee <vlee@vmware.com> | 2010-02-15 02:01:20 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-02-15 02:01:20 -0800 |
commit | a05fdbcb719ac64e6be842372813f0f4ca2f4f93 (patch) | |
tree | 0774a5fd1fb48e6c6ca6c9e79462fe7039e441a9 | |
parent | f0e1499805eb98e4d6dfe4f95f601593c65044d6 (diff) |
mesa: Remove pointless comparison of unsigned integer with a negative constant.
-rw-r--r-- | src/mesa/shader/prog_execute.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mesa/shader/prog_execute.c b/src/mesa/shader/prog_execute.c index aea4b074b3..ee422e7ec8 100644 --- a/src/mesa/shader/prog_execute.c +++ b/src/mesa/shader/prog_execute.c @@ -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: |