diff options
author | Brian Paul <[email protected]> | 2010-01-27 17:00:32 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-01-27 17:04:30 -0700 |
commit | 880411c72aee7c0ec81366bdf6ab8cf25bebb9d5 (patch) | |
tree | d5ad4af21a0e59bfee2ea3bec9b58ca9db130fd9 /src/mesa/swrast/s_alpha.c | |
parent | 4e5364d6fcd63b6f927ac4fb76effec0007d6797 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/swrast/s_alpha.c b/src/mesa/swrast/s_alpha.c index 5761bb00b4e..ebac562272f 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); } |