summaryrefslogtreecommitdiff
path: root/src/mesa/shader
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-04-21 14:19:50 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-04-21 14:19:50 +0000
commit88b69d799800bfec061943204de1627989f42fad (patch)
tree86f41f51a6f26653dcd18befadcc9fd157b75b1a /src/mesa/shader
parentf069e5e412eebabe64286d35598173caac5c132e (diff)
use _mesa_pow() for LIT (bug 3087)
Diffstat (limited to 'src/mesa/shader')
-rw-r--r--src/mesa/shader/nvvertexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/nvvertexec.c b/src/mesa/shader/nvvertexec.c
index 064a7f020b..f0558da1ab 100644
--- a/src/mesa/shader/nvvertexec.c
+++ b/src/mesa/shader/nvvertexec.c
@@ -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 );
}