mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 03:00:23 +01:00
r300: Setup the default state for polygon offset point/line.
I believe there are still bugs with all polygon offset types. The point and line types may need to be handled specially, too. This shouldn't break anything because it just enabled the occlusion control bits for polygon offset.
This commit is contained in:
parent
bf334d852d
commit
909091b7dc
1 changed files with 2 additions and 0 deletions
|
|
@ -1928,6 +1928,8 @@ static void r300ResetHwState(r300ContextPtr r300)
|
|||
|
||||
r300PolygonOffset(ctx, ctx->Polygon.OffsetFactor,
|
||||
ctx->Polygon.OffsetUnits);
|
||||
r300Enable(ctx, GL_POLYGON_OFFSET_POINT, ctx->Polygon.OffsetPoint);
|
||||
r300Enable(ctx, GL_POLYGON_OFFSET_LINE, ctx->Polygon.OffsetLine);
|
||||
r300Enable(ctx, GL_POLYGON_OFFSET_FILL, ctx->Polygon.OffsetFill);
|
||||
|
||||
r300->hw.unk42C0.cmd[1] = 0x4B7FFFFF;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue