summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_alpha.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-01-27 17:00:32 -0700
committerBrian Paul <brianp@vmware.com>2010-01-27 17:04:30 -0700
commit880411c72aee7c0ec81366bdf6ab8cf25bebb9d5 (patch)
treed5ad4af21a0e59bfee2ea3bec9b58ca9db130fd9 /src/mesa/swrast/s_alpha.c
parent4e5364d6fcd63b6f927ac4fb76effec0007d6797 (diff)
swrast: silence double->float assignment warnings
Reported by Karl Schultz.
Diffstat (limited to 'src/mesa/swrast/s_alpha.c')
-rw-r--r--src/mesa/swrast/s_alpha.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_alpha.c b/src/mesa/swrast/s_alpha.c
index 5761bb00b4..ebac562272 100644
--- a/src/mesa/swrast/s_alpha.c
+++ b/src/mesa/swrast/s_alpha.c
@@ -146,8 +146,8 @@ _swrast_alpha_test(const GLcontext *ctx, SWspan *span)
ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep);
}
else {
- const GLfloat alphaStep = span->alphaStep;
- GLfloat alpha = span->alpha;
+ const GLfloat alphaStep = FIXED_TO_FLOAT(span->alphaStep);
+ GLfloat alpha = FIXED_TO_FLOAT(span->alpha);
const GLfloat ref = ctx->Color.AlphaRef;
ALPHA_TEST(alpha, alpha += alphaStep);
}