mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 11:08:25 +00:00
ui: associate GL context outside of display listener registration
Consoles can have an associated GL context, without listeners (they may be added or removed later on). Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
3
ui/gtk.c
3
ui/gtk.c
@@ -2083,6 +2083,9 @@ static GSList *gd_vc_gfx_init(GtkDisplayState *s, VirtualConsole *vc,
|
||||
vc->gfx.kbd = qkbd_state_init(con);
|
||||
vc->gfx.dcl.con = con;
|
||||
|
||||
if (display_opengl) {
|
||||
qemu_console_set_display_gl_ctx(con, &vc->gfx.dcl);
|
||||
}
|
||||
register_displaychangelistener(&vc->gfx.dcl);
|
||||
|
||||
gd_connect_vc_gfx_signals(vc);
|
||||
|
||||
Reference in New Issue
Block a user