aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_atom_rasterizer.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-08-04 13:32:21 +0200
committerMarek Olšák <[email protected]>2012-08-15 19:20:57 +0200
commit03b78ceb50b97611bcaa2d2354ff5b505306b0a1 (patch)
treebda50f89370a73f757400031bd1491962278197f /src/mesa/state_tracker/st_atom_rasterizer.c
parente06d6168cb4367728fac68264757a700932c2f73 (diff)
st/mesa: don't clamp fragment color with integer colorbuffer
Diffstat (limited to 'src/mesa/state_tracker/st_atom_rasterizer.c')
-rw-r--r--src/mesa/state_tracker/st_atom_rasterizer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c
index 204f505a69f..d9e9d21f688 100644
--- a/src/mesa/state_tracker/st_atom_rasterizer.c
+++ b/src/mesa/state_tracker/st_atom_rasterizer.c
@@ -239,7 +239,8 @@ static void update_raster_state( struct st_context *st )
/* _NEW_FRAG_CLAMP */
raster->clamp_fragment_color = !st->clamp_frag_color_in_shader &&
- ctx->Color._ClampFragmentColor;
+ ctx->Color._ClampFragmentColor &&
+ !ctx->DrawBuffer->_IntegerColor;
raster->gl_rasterization_rules = 1;
/* _NEW_RASTERIZER_DISCARD */