mesa/st: remove duplicate offset calculation
This commit is contained in:
parent
eb979cef85
commit
106f2b031c
|
@ -181,21 +181,6 @@ 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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue