vrend: Clear blit framebuffer attachments after copy_resource

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Gert Wollny 5 years ago committed by Gert Wollny
parent aa05501cce
commit 1ffa77c6a8
  1. 8
      src/vrend_renderer.c

@ -7974,6 +7974,14 @@ void vrend_renderer_resource_copy_region(struct vrend_context *ctx,
dstx + src_box->width, dstx + src_box->width,
dy2, dy2,
glmask, GL_NEAREST); glmask, GL_NEAREST);
glBindFramebuffer(GL_READ_FRAMEBUFFER, ctx->sub->blit_fb_ids[0]);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
GL_TEXTURE_2D, 0, 0);
glBindFramebuffer(GL_READ_FRAMEBUFFER, ctx->sub->blit_fb_ids[1]);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0,
GL_TEXTURE_2D, 0, 0);
glBindFramebuffer(GL_FRAMEBUFFER, ctx->sub->fb_id); glBindFramebuffer(GL_FRAMEBUFFER, ctx->sub->fb_id);
if (ctx->sub->rs_state.scissor) if (ctx->sub->rs_state.scissor)

Loading…
Cancel
Save