From 827bee8f7855046755e2732d938e8ac744cfc9f4 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 13 Dec 2018 14:37:07 +1000 Subject: [PATCH] renderer: don't emit scissors on framebuffer state change These don't rely on each other anymore Reviewed-by: Erik Faye-Lund --- src/vrend_renderer.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 47de241..faf8e0b 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -2152,7 +2152,6 @@ void vrend_set_framebuffer_state(struct vrend_context *ctx, if (ctx->sub->fb_height != (uint32_t)new_height || ctx->sub->inverted_fbo_content != new_ibf) { ctx->sub->fb_height = new_height; ctx->sub->inverted_fbo_content = new_ibf; - ctx->sub->scissor_state_dirty = (1 << 0); ctx->sub->viewport_state_dirty = (1 << 0); } } @@ -3360,10 +3359,7 @@ static void vrend_update_scissor_state(struct vrend_context *ctx) break; } ss = &ctx->sub->ss[idx]; - if (ctx->sub->viewport_is_negative) - y = ss->miny; - else - y = ss->miny; + y = ss->miny; if (idx > 0 && has_feature(feat_viewport_array)) glScissorIndexed(idx, ss->minx, y, ss->maxx - ss->minx, ss->maxy - ss->miny);