renderer-egl: Clear buffer damage after rendering

Otherwise, damage accumulates and everything is damaged all the time.
pull/12/head
Andri Yngvason 2022-07-02 10:38:06 +00:00
parent 29b33672ea
commit 5dfac14981
1 changed files with 4 additions and 0 deletions

View File

@ -498,6 +498,8 @@ void render_image_egl(struct buffer* dst, const struct image* src,
glDeleteFramebuffers(1, &fbo.fbo);
glDeleteRenderbuffers(1, &fbo.rbo);
pixman_region_clear(&dst->damage);
}
void render_av_frames_egl(struct buffer* dst, struct vnc_av_frame** src,
@ -536,4 +538,6 @@ void render_av_frames_egl(struct buffer* dst, struct vnc_av_frame** src,
glBindFramebuffer(GL_FRAMEBUFFER, 0);
glDeleteFramebuffers(1, &fbo.fbo);
glDeleteRenderbuffers(1, &fbo.rbo);
pixman_region_clear(&dst->damage);
}