mesa/st: remove duplicate offset calculation
authorKeith Whitwell <keithw@vmware.com>
Tue, 28 Apr 2009 13:51:11 +0000 (14:51 +0100)
committerKeith Whitwell <keithw@vmware.com>
Tue, 28 Apr 2009 17:15:17 +0000 (18:15 +0100)
src/mesa/state_tracker/st_atom_rasterizer.c
src/mesa/state_tracker/st_context.h

index 61687fbc3e285c7049691517133e28532452ec1b..4e70510c0c0fde129b62d1624706bdd9a0a9e2df 100644 (file)
@@ -180,22 +180,7 @@ static void update_raster_state( struct st_context *st )
 
    if (ctx->Polygon.StippleFlag)
       raster->poly_stipple_enable = 1;
-
-
-   /* _NEW_BUFFERS, _NEW_POLYGON
-    */
-   if (raster->fill_cw != PIPE_POLYGON_MODE_FILL ||
-       raster->fill_ccw != PIPE_POLYGON_MODE_FILL)
-   {
-      GLfloat mrd = (ctx->DrawBuffer ? 
-                    ctx->DrawBuffer->_MRD : 
-                    1.0f);
-
-      raster->offset_units = ctx->Polygon.OffsetFactor * mrd;
-      raster->offset_scale = (ctx->Polygon.OffsetUnits * mrd *
-                           st->polygon_offset_scale);
-   }
-      
+     
    /* _NEW_POINT
     */
    raster->point_size = ctx->Point.Size;
index f840579a4042f627d98168105cf8800e51b00ba6..6ffed56d9a079d6b30eb62a86aaedf8e3661cd58 100644 (file)
@@ -120,8 +120,6 @@ struct st_context
 
    GLboolean missing_textures;
 
-   GLfloat polygon_offset_scale; /* ?? */
-
    /** Mapping from VERT_RESULT_x to post-transformed vertex slot */
    const GLuint *vertex_result_to_slot;