summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-08-02 15:17:27 +0200
committerMarek Olšák <[email protected]>2016-08-12 18:47:24 +0200
commit412bd7360c46405de3158683ce0f349126c30b77 (patch)
tree4a0de2e51fd8250a013ced35b4e986f5b134d93a /src/mesa/state_tracker/st_context.c
parentdd93cbc8945e182ab3130eeeb074fae798e5d4af (diff)
st/mesa: don't update clip state if it has no effect
Tested-by: Edmondo Tommasina <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index e4dd6fa897c..1ff035586c3 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -193,7 +193,8 @@ void st_invalidate_state(struct gl_context * ctx, GLbitfield new_state)
}
if (new_state & (_NEW_PROJECTION |
- _NEW_TRANSFORM))
+ _NEW_TRANSFORM) &&
+ st_user_clip_planes_enabled(ctx))
st->dirty |= ST_NEW_CLIP_STATE;
if (new_state & _NEW_COLOR)