diff options
author | Brian Paul <[email protected]> | 2006-10-22 17:18:50 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2006-10-22 17:18:50 +0000 |
commit | 0b26e826bda0da7aeec9a79ee07fe21d54bb1263 (patch) | |
tree | cad7fe6571832fc55e6916f024aa1d1365ea410f /src/mesa/swrast/s_span.c | |
parent | 919cd2c3ba39bf4d8d2ffcea0daec7bab8645d34 (diff) |
Color clamping fixes.
Diffstat (limited to 'src/mesa/swrast/s_span.c')
-rw-r--r-- | src/mesa/swrast/s_span.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index ad55e1b10c3..2e20f7a2965 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1583,7 +1583,7 @@ _swrast_write_rgba_span( GLcontext *ctx, SWspan *span) } /* Clamp color/alpha values over the range [0.0, 1.0] before storage */ - if (ctx->Color.ClampFragmentColor && + if (ctx->Color.ClampFragmentColor == GL_TRUE && span->array->ChanType == GL_FLOAT) { clamp_colors(span); } |