From: Brian Paul Date: Fri, 14 Mar 2008 23:45:27 +0000 (-0600) Subject: gallium: if point size not computed per vertex, apply size clamp immediately. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cbf42c45a15d6a132c7f7d4946c422ee3de35e6c;p=mesa.git gallium: if point size not computed per vertex, apply size clamp immediately. Fixes glean pointAtten failure. --- 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 */