gallium: if point size not computed per vertex, apply size clamp immediately.
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 14 Mar 2008 23:45:27 +0000 (17:45 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 14 Mar 2008 23:45:27 +0000 (17:45 -0600)
Fixes glean pointAtten failure.

src/mesa/state_tracker/st_atom_rasterizer.c

index 77cef9236bb5a04257044db1973ddaec322cb940..17d77f90aec19f1955e53fa86701d2b0c634cee6 100644 (file)
@@ -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
     */