summaryrefslogtreecommitdiffstats
path: root/ui/gtk-gl-area.c
diff options
context:
space:
mode:
authorMarc-André Lureau2021-02-04 11:52:19 +0100
committerGerd Hoffmann2021-02-04 15:58:54 +0100
commit568b12fccfe5394326df1ce3e10790608d439a37 (patch)
tree14bb970b7cf609e1f17d6953dbbc4bd83b0bf08e /ui/gtk-gl-area.c
parentui: remove gl_ctx_get_current (diff)
downloadqemu-568b12fccfe5394326df1ce3e10790608d439a37.tar.gz
qemu-568b12fccfe5394326df1ce3e10790608d439a37.tar.xz
qemu-568b12fccfe5394326df1ce3e10790608d439a37.zip
ui: add gd_gl_area_scanout_disable
Require the callback, drop the fallback path. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20210204105232.834642-8-marcandre.lureau@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/gtk-gl-area.c')
-rw-r--r--ui/gtk-gl-area.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/gtk-gl-area.c b/ui/gtk-gl-area.c
index 98c22d23f5..96fbe75387 100644
--- a/ui/gtk-gl-area.c
+++ b/ui/gtk-gl-area.c
@@ -198,6 +198,13 @@ void gd_gl_area_scanout_texture(DisplayChangeListener *dcl,
backing_id, false);
}
+void gd_gl_area_scanout_disable(DisplayChangeListener *dcl)
+{
+ VirtualConsole *vc = container_of(dcl, VirtualConsole, gfx.dcl);
+
+ gtk_gl_area_set_scanout_mode(vc, false);
+}
+
void gd_gl_area_scanout_flush(DisplayChangeListener *dcl,
uint32_t x, uint32_t y, uint32_t w, uint32_t h)
{