diff options
author | Marek Olšák <[email protected]> | 2016-08-02 15:17:27 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-08-12 18:47:24 +0200 |
commit | 412bd7360c46405de3158683ce0f349126c30b77 (patch) | |
tree | 4a0de2e51fd8250a013ced35b4e986f5b134d93a /src/mesa/state_tracker/st_context.c | |
parent | dd93cbc8945e182ab3130eeeb074fae798e5d4af (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.c | 3 |
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) |