summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_context.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-11-12 18:44:29 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-11-12 18:44:29 +0000
commitba3da6154c324cc916845bc5de3de077d0b59ffc (patch)
tree45554c510334b1cff6133c5698487fe1a437a05f /src/mesa/swrast/s_context.c
parente3636b4114327411a3ff7590a61a652d10c18a34 (diff)
Added OSMesaColorClamp(), bug 4917
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r--src/mesa/swrast/s_context.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c
index 186fda0949..9d283b0589 100644
--- a/src/mesa/swrast/s_context.c
+++ b/src/mesa/swrast/s_context.c
@@ -105,6 +105,12 @@ _swrast_update_rasterflags( GLcontext *ctx )
rasterMask |= ATIFRAGSHADER_BIT;
}
+#if CHAN_TYPE == GL_FLOAT
+ if (ctx->Color.ClampFragmentColor == GL_TRUE) {
+ rasterMask |= CLAMPING_BIT;
+ }
+#endif
+
SWRAST_CONTEXT(ctx)->_RasterMask = rasterMask;
}