Module: Mesa
Branch: floating
Commit: e9ff17073b7aec1ce855da0230e10e5ae56e1051
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e9ff17073b7aec1ce855da0230e10e5ae56e1051

Author: Luca Barbieri <[email protected]>
Date:   Thu Aug 26 18:17:28 2010 +0200

mesa/st: support fragment and vertex color clamping

---

 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 2599bd5..8a115ae 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 |

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to