summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-08-26 18:17:54 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-09-05 18:11:22 +0200
commit513b37d484f0318311e84bb86ed4c93cdff71f13 (patch)
tree4c51614e15cfb2c0d21b84cf893694d6f4653003
parent546a31e42cad459d7a7a10ebf77fc5ffcf89e9b8 (diff)
mesa/st: respect fragment clamping in st_DrawPixels
-rw-r--r--src/mesa/state_tracker/st_cb_drawpixels.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c
index 3d262fda77..8223468036 100644
--- a/src/mesa/state_tracker/st_cb_drawpixels.c
+++ b/src/mesa/state_tracker/st_cb_drawpixels.c
@@ -544,6 +544,7 @@ draw_textured_quad(GLcontext *ctx, GLint x, GLint y, GLfloat z,
memset(&rasterizer, 0, sizeof(rasterizer));
rasterizer.gl_rasterization_rules = 1;
rasterizer.scissor = ctx->Scissor.Enabled;
+ rasterizer.clamp_fragment_color = ctx->Color._ClampFragmentColor;
cso_set_rasterizer(cso, &rasterizer);
}