From 34809ef70483125858b48b4d90e7a2d7c609fcda Mon Sep 17 00:00:00 2001 From: Lepton Wu Date: Tue, 24 Jul 2018 16:20:55 -0700 Subject: [PATCH] vrend: Set scissor_state_dirty correctly. We forgot to set scissor_state_dirty when we disable GL_SCISSOR_TEST in vrend_renderer_blit_int. This fixes bug mentioned in https://lists.freedesktop.org/archives/virglrenderer-devel/2018-July/001230.html Signed-off-by: Lepton Wu Reviewed-by: Dave Airlie --- src/vrend_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 19c199b..da24f04 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -6765,10 +6765,10 @@ static void vrend_renderer_blit_int(struct vrend_context *ctx, if (info->scissor_enable) { glScissor(info->scissor.minx, info->scissor.miny, info->scissor.maxx - info->scissor.minx, info->scissor.maxy - info->scissor.miny); - ctx->sub->scissor_state_dirty = (1 << 0); glEnable(GL_SCISSOR_TEST); } else glDisable(GL_SCISSOR_TEST); + ctx->sub->scissor_state_dirty = (1 << 0); /* An GLES GL_INVALID_OPERATION is generated if one wants to blit from a * multi-sample fbo to a non multi-sample fbo and the source and destination