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/swrast/s_nvfragprog.c | |
parent | 386578c5bcc5c6701a6b9692cdc04cfe4064ca06 (diff) |
added _mesa_inv_sqrtf() and INV_SQRTF() (Josh Vanderhoof)
Diffstat (limited to 'src/mesa/swrast/s_nvfragprog.c')
-rw-r--r-- | src/mesa/swrast/s_nvfragprog.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c index 97f65c04794..147b5248d4c 100644 --- a/src/mesa/swrast/s_nvfragprog.c +++ b/src/mesa/swrast/s_nvfragprog.c @@ -1,4 +1,4 @@ -/* $Id: s_nvfragprog.c,v 1.5 2003/03/01 01:50:26 brianp Exp $ */ +/* $Id: s_nvfragprog.c,v 1.6 2003/03/04 16:34:03 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -582,8 +582,7 @@ execute_program(GLcontext *ctx, const struct fragment_program *program) { GLfloat a[4], result[4]; fetch_vector1( &inst->SrcReg[0], machine, a ); - result[0] = result[1] = result[2] = result[3] - = 1.0F / SQRTF(a[0]); + result[0] = result[1] = result[2] = result[3] = INV_SQRTF(a[0]); store_vector4( inst, machine, result ); } break; |