summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/viewport.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-10 12:18:34 +0200
committerMarek Olšák <[email protected]>2017-06-22 01:51:02 +0200
commitbc871a1baf8979310eb7adc1b87342e389616027 (patch)
treef94a58f7dfcea798dbd13b51ec831c92d378cc85 /src/mesa/main/viewport.c
parent00173d91b70ae4dcea7c6324ee4858c498cae14b (diff)
mesa: don't flag _NEW_POLYGON for st/mesa
Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
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);