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 <lepton@chromium.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
macos/master
Lepton Wu 6 years ago committed by Dave Airlie
parent 58e521c57e
commit 34809ef704
  1. 2
      src/vrend_renderer.c

@ -6765,10 +6765,10 @@ static void vrend_renderer_blit_int(struct vrend_context *ctx,
if (info->scissor_enable) { if (info->scissor_enable) {
glScissor(info->scissor.minx, info->scissor.miny, info->scissor.maxx - info->scissor.minx, info->scissor.maxy - info->scissor.miny); 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); glEnable(GL_SCISSOR_TEST);
} else } else
glDisable(GL_SCISSOR_TEST); 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 /* 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 * multi-sample fbo to a non multi-sample fbo and the source and destination

Loading…
Cancel
Save