diff options
author | Luca Barbieri <luca@luca-barbieri.com> | 2010-08-26 18:17:28 +0200 |
---|---|---|
committer | Luca Barbieri <luca@luca-barbieri.com> | 2010-09-05 18:11:22 +0200 |
commit | 546a31e42cad459d7a7a10ebf77fc5ffcf89e9b8 (patch) | |
tree | 27f7c8f25e22f143e074eac54c514d0b40a62007 | |
parent | f907936a5498cf30821d7d18515466e8329528da (diff) |
mesa/st: support fragment and vertex color clamping
-rw-r--r-- | src/mesa/state_tracker/st_atom_rasterizer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c index 2599bd5ca0..8a115aee14 100644 --- a/src/mesa/state_tracker/st_atom_rasterizer.c +++ b/src/mesa/state_tracker/st_atom_rasterizer.c @@ -110,6 +110,9 @@ static void update_raster_state( struct st_context *st ) raster->light_twoside = 1; } + raster->clamp_fragment_color = ctx->Color._ClampFragmentColor; + raster->clamp_vertex_color = ctx->Light._ClampVertexColor; + /* _NEW_POLYGON */ if (ctx->Polygon.CullFlag) { @@ -246,6 +249,7 @@ const struct st_tracked_state st_update_rasterizer = { "st_update_rasterizer", /* name */ { (_NEW_BUFFERS | + _NEW_FRAG_CLAMP | _NEW_LIGHT | _NEW_LINE | _NEW_MULTISAMPLE | |