r300: Setup the default state for polygon offset point/line.
authorOliver McFadden <z3ro.geek@gmail.com>
Wed, 20 Jun 2007 03:02:34 +0000 (03:02 +0000)
committerOliver McFadden <z3ro.geek@gmail.com>
Sun, 24 Jun 2007 14:01:19 +0000 (14:01 +0000)
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.

src/mesa/drivers/dri/r300/r300_state.c

index 85212b56c7bad0cbafe272aba6e0ed9d355831d0..dfde2f090f508b15a948e8bd38bffa93c51f692d 100644 (file)
@@ -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;