mesa/st: remove duplicate offset calculation

This commit is contained in:
Keith Whitwell 2009-04-28 14:51:11 +01:00
parent eb979cef85
commit 106f2b031c
2 changed files with 1 additions and 18 deletions

View 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;

View 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;