summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKarl Schultz <kschultz@freedesktop.org>2003-09-18 15:14:58 +0000
committerKarl Schultz <kschultz@freedesktop.org>2003-09-18 15:14:58 +0000
commita01566e46811cf976996a763d2a2c4ef612e0ff6 (patch)
treea685658bc6e8c6e5957bcf90ec95bea6dc832a39 /src/mesa
parentdf8d337eec9b9f6f1d6ed0b4a7044b4f4420c52b (diff)
Add casts to prevent double->float conversion compiler warnings.
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/swrast/s_nvfragprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c
index 9e5bcafd71..c0c097a8d7 100644
--- a/src/mesa/swrast/s_nvfragprog.c
+++ b/src/mesa/swrast/s_nvfragprog.c
@@ -978,8 +978,8 @@ execute_program( GLcontext *ctx,
{
GLfloat a[4], result[4];
fetch_vector1( ctx, &inst->SrcReg[0], machine, program, a );
- result[0] = cos(a[0]);
- result[1] = sin(a[0]);
+ result[0] = (GLfloat)cos(a[0]);
+ result[1] = (GLfloat)sin(a[0]);
result[2] = 0.0; /* undefined! */
result[3] = 0.0; /* undefined! */
store_vector4( inst, machine, result );