mesa: use IFLOOR(x) instead of (int) FLOORF(x)
authorBrian Paul <brian.paul@tungstengraphics.com>
Sat, 13 Dec 2008 01:03:48 +0000 (18:03 -0700)
committerBrian Paul <brian.paul@tungstengraphics.com>
Sat, 13 Dec 2008 01:03:48 +0000 (18:03 -0700)
src/mesa/shader/prog_execute.c

index 923611b7975db77c737f1c05ff9b9d8db476b1fd..4d2fbd0a805bfb52eb616d7d6b6c25790da15280 100644 (file)
@@ -705,7 +705,7 @@ _mesa_execute_program(GLcontext * ctx,
          {
             GLfloat t[4];
             fetch_vector4(&inst->SrcReg[0], machine, t);
-            machine->AddressReg[0][0] = (GLint) FLOORF(t[0]);
+            machine->AddressReg[0][0] = IFLOOR(t[0]);
          }
          break;
       case OPCODE_BGNLOOP: