monitor-stream-src: Use cogl_framebuffer_finish()

Even though cogl_framebuffer_flush() was supposed to be enough,
it ends up creating streams with odd visual glitches that look
very much like unfinished frames.

Switch back to cogl_framebuffer_finish(), which is admittedly
an overkill, but it's what works for now. There is anedoctal
evidence showing it doesn't incur in worse performance.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1086
This commit is contained in:
Georges Basile Stavracas Neto 2020-02-28 15:47:23 -03:00
parent 1f190a7cfe
commit 09026e5f0e

View File

@ -436,7 +436,7 @@ meta_screen_cast_monitor_stream_src_blit_to_framebuffer (MetaScreenCastStreamSrc
}
}
cogl_framebuffer_flush (framebuffer);
cogl_framebuffer_finish (framebuffer);
return TRUE;
}