diff options
Diffstat (limited to 'src/mesa/main/viewport.c')
-rw-r--r-- | src/mesa/main/viewport.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/main/viewport.c b/src/mesa/main/viewport.c index 51ae6692f7b..5529f55ee71 100644 --- a/src/mesa/main/viewport.c +++ b/src/mesa/main/viewport.c @@ -460,7 +460,10 @@ _mesa_ClipControl(GLenum origin, GLenum depth) ctx->Transform.ClipOrigin = origin; /* Affects the winding order of the front face. */ - ctx->NewState |= _NEW_POLYGON; + if (ctx->DriverFlags.NewPolygonState) + ctx->NewDriverState |= ctx->DriverFlags.NewPolygonState; + else + ctx->NewState |= _NEW_POLYGON; if (ctx->Driver.FrontFace) ctx->Driver.FrontFace(ctx, ctx->Polygon.FrontFace); |