mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
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>
This commit is contained in:
parent
c110d949b8
commit
568b12fccf
4 changed files with 10 additions and 6 deletions
|
@ -1806,12 +1806,7 @@ int dpy_gl_ctx_make_current(QemuConsole *con, QEMUGLContext ctx)
|
|||
void dpy_gl_scanout_disable(QemuConsole *con)
|
||||
{
|
||||
assert(con->gl);
|
||||
if (con->gl->ops->dpy_gl_scanout_disable) {
|
||||
con->gl->ops->dpy_gl_scanout_disable(con->gl);
|
||||
} else {
|
||||
con->gl->ops->dpy_gl_scanout_texture(con->gl, 0, false, 0, 0,
|
||||
0, 0, 0, 0);
|
||||
}
|
||||
con->gl->ops->dpy_gl_scanout_disable(con->gl);
|
||||
}
|
||||
|
||||
void dpy_gl_scanout_texture(QemuConsole *con,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue