diff options
author | Brian Paul <[email protected]> | 2006-09-13 20:14:24 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-09-13 20:14:24 +0000 |
commit | ac1d7370a715f89448498b13c7279df6cb54b1e9 (patch) | |
tree | ef2cdc45263b674bed0798c638b0221fe1eeba35 /src/mesa/tnl/t_vb_arbprogram.c | |
parent | cb08dcbbf29dfa82128c8302f7aa69e90478a5ea (diff) |
fix broken do_EXP()
Diffstat (limited to 'src/mesa/tnl/t_vb_arbprogram.c')
-rw-r--r-- | src/mesa/tnl/t_vb_arbprogram.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c index f162b0aa910..093678ecd51 100644 --- a/src/mesa/tnl/t_vb_arbprogram.c +++ b/src/mesa/tnl/t_vb_arbprogram.c @@ -1,6 +1,6 @@ /* * Mesa 3-D graphics library - * Version: 6.5 + * Version: 6.5.1 * * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. * @@ -108,11 +108,6 @@ static GLfloat ApproxPower(GLfloat x, GLfloat y) return (GLfloat) _mesa_pow(x, y); } -static GLfloat rough_approx_log2_0_1(GLfloat x) -{ - return LOG2(x); -} - /** * Perform a reduced swizzle: @@ -314,7 +309,7 @@ static void do_EXP( struct arb_vp_machine *m, union instruction op ) result[0] = LDEXPF(1.0, (int)flr_tmp); result[1] = frac_tmp; - result[2] = LDEXPF(rough_approx_log2_0_1(frac_tmp), (int)flr_tmp); + result[2] = RoughApproxExp2(tmp); result[3] = 1.0F; } |