gallium: if point size not computed per vertex, apply size clamp immediately.

Fixes glean pointAtten failure.
This commit is contained in:
Brian Paul 2008-03-14 17:45:27 -06:00
parent 5a09ad8248
commit cbf42c45a1

View file

@ -223,7 +223,12 @@ static void update_raster_state( struct st_context *st )
raster->point_size_per_vertex = ctx->VertexProgram.PointSizeEnabled; 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 /* _NEW_LINE
*/ */