diff options
author | Marc-André Lureau | 2021-02-16 10:20:55 +0100 |
---|---|---|
committer | Gerd Hoffmann | 2021-02-19 15:00:12 +0100 |
commit | 3af167185229afae754f86e1b86d6dd9a5acfb70 (patch) | |
tree | 6caa6118f826b7fc85b67f78e1c688f0ef8b45f8 | |
parent | Merge remote-tracking branch 'remotes/rth-gitlab/tags/pull-hex-20210218' into... (diff) | |
download | qemu-3af167185229afae754f86e1b86d6dd9a5acfb70.tar.gz qemu-3af167185229afae754f86e1b86d6dd9a5acfb70.tar.xz qemu-3af167185229afae754f86e1b86d6dd9a5acfb70.zip |
spice: flush on GL update before notifying client
Since the introduction of spice/virgl support in commit
474114b7 ("spice: add opengl/virgl/dmabuf support"), the drawing isn't
being flushed before notifying the client. This results in
outdated/sluggish drawing on client side, in particular when using the
Linux console.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210216092056.2301293-1-marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r-- | ui/spice-display.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/spice-display.c b/ui/spice-display.c index 6f32b66a6e..d562c64084 100644 --- a/ui/spice-display.c +++ b/ui/spice-display.c @@ -1087,6 +1087,7 @@ static void qemu_spice_gl_update(DisplayChangeListener *dcl, trace_qemu_spice_gl_update(ssd->qxl.id, w, h, x, y); 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, x, y, w, h, cookie); } |