use _mesa_pow() for LIT (bug 3087)
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 21 Apr 2005 14:19:50 +0000 (14:19 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 21 Apr 2005 14:19:50 +0000 (14:19 +0000)
src/mesa/shader/nvvertexec.c

index 064a7f020b9f69772a44d66cd56e3b3025023bf8..f0558da1abff5741556f895f6650dde07c200b2a 100644 (file)
@@ -424,7 +424,7 @@ _mesa_exec_vertex_program(GLcontext *ctx, const struct vertex_program *program)
                t[3] = CLAMP(t[3], -(128.0F - epsilon), (128.0F - epsilon));
                lit[0] = 1.0;
                lit[1] = t[0];
-               lit[2] = (t[0] > 0.0) ? (GLfloat) exp(t[3] * log(t[1])) : 0.0F;
+               lit[2] = (t[0] > 0.0) ? (GLfloat) _mesa_pow(t[1], t[3]) : 0.0F;
                lit[3] = 1.0;
                store_vector4( &inst->DstReg, state, lit );
             }