diff options
author | Brian Paul <[email protected]> | 2003-03-04 16:33:53 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-03-04 16:33:53 +0000 |
commit | f9b1e5241facc8cf255c258082d5cb5b04783e93 (patch) | |
tree | ea3bb1859dba42e746b0f14dce5193b81c922ac5 /src/mesa/main/nvvertexec.c | |
parent | 386578c5bcc5c6701a6b9692cdc04cfe4064ca06 (diff) |
added _mesa_inv_sqrtf() and INV_SQRTF() (Josh Vanderhoof)
Diffstat (limited to 'src/mesa/main/nvvertexec.c')
-rw-r--r-- | src/mesa/main/nvvertexec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/nvvertexec.c b/src/mesa/main/nvvertexec.c index 72ebcffca9a..07029273544 100644 --- a/src/mesa/main/nvvertexec.c +++ b/src/mesa/main/nvvertexec.c @@ -1,4 +1,4 @@ -/* $Id: nvvertexec.c,v 1.2 2003/03/01 01:50:22 brianp Exp $ */ +/* $Id: nvvertexec.c,v 1.3 2003/03/04 16:33:55 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -380,7 +380,7 @@ _mesa_exec_vertex_program(GLcontext *ctx, const struct vertex_program *program) { GLfloat t[4]; fetch_vector1( &inst->SrcReg[0], machine, t ); - t[0] = (float) (1.0 / sqrt(fabs(t[0]))); + t[0] = INV_SQRTF(FABSF(t[0])); t[1] = t[2] = t[3] = t[0]; store_vector4( &inst->DstReg, machine, t ); } |