X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fmain%2Fnvvertexec.c;h=580d04abca599a1c233eec0484a4320718ce6521;hb=e4fcea2e06571b71a85b4f100c95d866a82f7c19;hp=73d5440c79aa85f54abfe1ac90681bef6bf9071f;hpb=f2dd273322cc9ec0cfe80a609f9a1e5db5931e2e;p=mesa.git diff --git a/src/mesa/main/nvvertexec.c b/src/mesa/main/nvvertexec.c index 73d5440c79a..580d04abca5 100644 --- a/src/mesa/main/nvvertexec.c +++ b/src/mesa/main/nvvertexec.c @@ -35,6 +35,7 @@ #include "mtypes.h" #include "nvvertexec.h" #include "nvvertprog.h" +#include "program.h" #include "math/m_matrix.h" @@ -689,7 +690,7 @@ _mesa_exec_vertex_program(GLcontext *ctx, const struct vertex_program *program) { GLfloat t[4]; fetch_vector1( &inst->SrcReg[0], state, t ); - t[0] = t[1] = t[2] = t[3] = _mesa_pow(2.0, t[0]); + t[0] = t[1] = t[2] = t[3] = (GLfloat)_mesa_pow(2.0, t[0]); store_vector4( &inst->DstReg, state, t ); } break; @@ -706,7 +707,7 @@ _mesa_exec_vertex_program(GLcontext *ctx, const struct vertex_program *program) GLfloat t[4], u[4]; fetch_vector1( &inst->SrcReg[0], state, t ); fetch_vector1( &inst->SrcReg[1], state, u ); - t[0] = t[1] = t[2] = t[3] = _mesa_pow(t[0], u[0]); + t[0] = t[1] = t[2] = t[3] = (GLfloat)_mesa_pow(t[0], u[0]); store_vector4( &inst->DstReg, state, t ); } break;