mesa: rasterizer state depends on ST_NEW_VERTEX_PROGRAM
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 9 Oct 2008 22:39:59 +0000 (16:39 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 9 Oct 2008 22:39:59 +0000 (16:39 -0600)
Check for per-vertex point size must be done when vertex program changes.

src/mesa/state_tracker/st_atom_rasterizer.c

index fc47896c2429b125285efd9c346d105c54ab70c7..5eef4ebe92e58caa21b63927c70f6914531f8994 100644 (file)
@@ -215,6 +215,9 @@ static void update_raster_state( struct st_context *st )
          raster->sprite_coord_mode[i] = PIPE_SPRITE_COORD_NONE;
       }
    }
+
+   /* ST_NEW_VERTEX_PROGRAM
+    */
    if (vertProg) {
       if (vertProg->Base.Id == 0) {
          if (vertProg->Base.OutputsWritten & (1 << VERT_RESULT_PSIZ)) {
@@ -277,7 +280,7 @@ const struct st_tracked_state st_update_rasterizer = {
        _NEW_POLYGON |
        _NEW_PROGRAM |
        _NEW_SCISSOR),      /* mesa state dependencies*/
-      0,                   /* state tracker dependencies */
+      ST_NEW_VERTEX_PROGRAM,  /* state tracker dependencies */
    },
    update_raster_state     /* update function */
 };