summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/clip.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-10 12:09:43 +0200
committerMarek Olšák <[email protected]>2017-06-22 01:51:02 +0200
commit00173d91b70ae4dcea7c6324ee4858c498cae14b (patch)
tree1f3f7bcf4f7b17b1be58d50123d7b7efec8b6356 /src/mesa/main/clip.c
parent55f1106637a122f6b6c91d45acb721398328cc17 (diff)
mesa: don't flag _NEW_TRANSFORM for st/mesa if possible
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/clip.c')
-rw-r--r--src/mesa/main/clip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/clip.c b/src/mesa/main/clip.c
index f994728bc95..0950283ff3c 100644
--- a/src/mesa/main/clip.c
+++ b/src/mesa/main/clip.c
@@ -83,7 +83,9 @@ _mesa_ClipPlane( GLenum plane, const GLdouble *eq )
if (TEST_EQ_4V(ctx->Transform.EyeUserPlane[p], equation))
return;
+ /* EyeUserPlane is used by program state constants. */
FLUSH_VERTICES(ctx, _NEW_TRANSFORM);
+ ctx->NewDriverState |= ctx->DriverFlags.NewClipPlane;
COPY_4FV(ctx->Transform.EyeUserPlane[p], equation);
if (ctx->Transform.ClipPlanesEnabled & (1 << p)) {