summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lureau2021-02-16 10:20:56 +0100
committerGerd Hoffmann2021-02-19 15:00:12 +0100
commitf4f2805ef8938565973864a7e5fd1207e074460e (patch)
tree3da950a6eb68fd7dbdceb8a4aa21f61ee68c08a3
parentspice: flush on GL update before notifying client (diff)
downloadqemu-f4f2805ef8938565973864a7e5fd1207e074460e.tar.gz
qemu-f4f2805ef8938565973864a7e5fd1207e074460e.tar.xz
qemu-f4f2805ef8938565973864a7e5fd1207e074460e.zip
spice: flush drawing before notifying client
This solves the client having slow/outdated VGA/2D console. It's a regression introduced when the code was switched to render it via opengl in commit 4423184376d ("spice/gl: render DisplaySurface via opengl") Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210216092056.2301293-2-marcandre.lureau@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--ui/spice-display.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/spice-display.c b/ui/spice-display.c
index d562c64084..ad93b953a9 100644
--- a/ui/spice-display.c
+++ b/ui/spice-display.c
@@ -846,6 +846,7 @@ static void spice_gl_refresh(DisplayChangeListener *dcl)
graphic_hw_update(dcl->con);
if (ssd->gl_updates && ssd->have_surface) {
qemu_spice_gl_block(ssd, true);
+ glFlush();
cookie = (uintptr_t)qxl_cookie_new(QXL_COOKIE_TYPE_GL_DRAW_DONE, 0);
spice_qxl_gl_draw_async(&ssd->qxl, 0, 0,
surface_width(ssd->ds),