diff options
author | Brian Paul <[email protected]> | 2008-03-14 17:45:27 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-03-14 17:45:27 -0600 |
commit | cbf42c45a15d6a132c7f7d4946c422ee3de35e6c (patch) | |
tree | 485e94c32f772fc878e305fc23fcf33fb1891491 | |
parent | 5a09ad8248ce452136ed96a3d46532b03c877618 (diff) |
gallium: if point size not computed per vertex, apply size clamp immediately.
Fixes glean pointAtten failure.
-rw-r--r-- | src/mesa/state_tracker/st_atom_rasterizer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c index 77cef9236bb..17d77f90aec 100644 --- a/src/mesa/state_tracker/st_atom_rasterizer.c +++ b/src/mesa/state_tracker/st_atom_rasterizer.c @@ -223,7 +223,12 @@ static void update_raster_state( struct st_context *st ) raster->point_size_per_vertex = ctx->VertexProgram.PointSizeEnabled; } } - + if (!raster->point_size_per_vertex) { + /* clamp size now */ + raster->point_size = CLAMP(ctx->Point.Size, + ctx->Point.MinSize, + ctx->Point.MaxSize); + } /* _NEW_LINE */ |