summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_nvfragprog.c
diff options
context:
space:
mode:
authorKarl Rasche <karlrasche@gmail.com>2003-12-13 15:12:58 +0000
committerKarl Rasche <karlrasche@gmail.com>2003-12-13 15:12:58 +0000
commit7aa77b679d0d273b941029bb2c912f87f94d055b (patch)
tree90bd4a3c48fe3268b350270fbbe90648065eb4b8 /src/mesa/swrast/s_nvfragprog.c
parent79ce2095532409e2246b2e0a9928f319245451f8 (diff)
Problem computing specular value in OPCODE_LIT - pulled in value from
vertex program execution of LIT
Diffstat (limited to 'src/mesa/swrast/s_nvfragprog.c')
-rw-r--r--src/mesa/swrast/s_nvfragprog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c
index f34829e4f1..22ff7ed889 100644
--- a/src/mesa/swrast/s_nvfragprog.c
+++ b/src/mesa/swrast/s_nvfragprog.c
@@ -790,7 +790,7 @@ execute_program( GLcontext *ctx,
a[1] = 0.0F;
result[0] = 1.0F;
result[1] = a[0];
- result[2] = (a[0] > 0.0F) ? (GLfloat)_mesa_pow(2.0, a[3]) : 0.0F;
+ result[2] = (a[0] > 0.0F) ? (GLfloat) exp(a[3] * log(a[1])) : 0.0F;
result[3] = 1.0F;
store_vector4( inst, machine, result );
}