summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/viewport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/viewport.c')
-rw-r--r--src/mesa/main/viewport.c5
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);