diff options
author | Brian Paul <[email protected]> | 2006-10-19 22:26:29 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-10-19 22:26:29 +0000 |
commit | cd5a623386f55704e5f9ac492fe397d75ac03945 (patch) | |
tree | ad8ca1511e83a2f2e5abed549ebbc3e22b518176 /src | |
parent | 7c760289371ce14228b1172195a07c2630ca6229 (diff) |
fixed Fixed/Int bug
Diffstat (limited to 'src')
-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 dadb51319cb..87a016512cd 100644 --- a/src/mesa/swrast/s_alpha.c +++ b/src/mesa/swrast/s_alpha.c @@ -136,14 +136,14 @@ _swrast_alpha_test(const GLcontext *ctx, SWspan *span) GLfixed alpha = span->alpha; GLubyte ref; CLAMPED_FLOAT_TO_UBYTE(ref, ctx->Color.AlphaRef); - ALPHA_TEST(alpha, alpha += alphaStep); + ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep); } else if (span->array->ChanType == GL_UNSIGNED_SHORT) { const GLfixed alphaStep = span->alphaStep; GLfixed alpha = span->alpha; GLushort ref; CLAMPED_FLOAT_TO_USHORT(ref, ctx->Color.AlphaRef); - ALPHA_TEST(alpha, alpha += alphaStep); + ALPHA_TEST(FixedToInt(alpha), alpha += alphaStep); } else { const GLfloat alphaStep = span->alphaStep; |