projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df8d337
)
Add casts to prevent double->float conversion compiler warnings.
author
Karl Schultz
<kschultz@freedesktop.org>
Thu, 18 Sep 2003 15:14:58 +0000
(15:14 +0000)
committer
Karl Schultz
<kschultz@freedesktop.org>
Thu, 18 Sep 2003 15:14:58 +0000
(15:14 +0000)
src/mesa/swrast/s_nvfragprog.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_nvfragprog.c
b/src/mesa/swrast/s_nvfragprog.c
index 9e5bcafd71a09d3bb821e0d8df95d8ce65d52c31..c0c097a8d7058b7afed68750f5aaca1305ea49cb 100644
(file)
--- 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 );