renderer-egl: Don't clear before drawing
That interferes with damage trackingpull/12/head
parent
505b03a47e
commit
29b33672ea
|
@ -451,9 +451,6 @@ void render_image_egl(struct buffer* dst, const struct image* src,
|
|||
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, fbo.fbo);
|
||||
|
||||
glClearColor(0.0, 0.0, 0.0, 1.0);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
bool is_new_texture = !texture;
|
||||
|
||||
if (!texture)
|
||||
|
@ -511,9 +508,6 @@ void render_av_frames_egl(struct buffer* dst, struct vnc_av_frame** src,
|
|||
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, fbo.fbo);
|
||||
|
||||
glClearColor(0.0, 0.0, 0.0, 1.0);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
struct pixman_box16* ext = pixman_region_extents(&dst->damage);
|
||||
glScissor(ext->x1, ext->y1, ext->x2 - ext->x1, ext->y2 - ext->y1);
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
|
|
Loading…
Reference in New Issue