diff options
author | Marek Olšák <[email protected]> | 2017-06-10 00:30:18 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-06-22 01:51:02 +0200 |
commit | be15028ede59bc1936be315321e8add7553641f3 (patch) | |
tree | a9b727293f9b7f8aeee0f503f181793999408746 /src/mesa/main/scissor.c | |
parent | 124df5d71a051b6e7d46ac45331ad21bfd1df029 (diff) |
mesa: don't flag _NEW_SCISSOR for st/mesa
Not needed and we get to bypass _mesa_update_state_locked that would be
a no-op.
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/scissor.c')
-rw-r--r-- | src/mesa/main/scissor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/scissor.c b/src/mesa/main/scissor.c index 2f2e226ab93..b38db06bc86 100644 --- a/src/mesa/main/scissor.c +++ b/src/mesa/main/scissor.c @@ -48,7 +48,7 @@ set_scissor_no_notify(struct gl_context *ctx, unsigned idx, height == ctx->Scissor.ScissorArray[idx].Height) return; - FLUSH_VERTICES(ctx, _NEW_SCISSOR); + FLUSH_VERTICES(ctx, ctx->DriverFlags.NewScissorRect ? 0 : _NEW_SCISSOR); ctx->NewDriverState |= ctx->DriverFlags.NewScissorRect; ctx->Scissor.ScissorArray[idx].X = x; |