mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 06:13:46 +08:00
ui/console: call gfx_switch() even if the current scanout is GL
egl-headless depends on the backing surface to be set before texture are set and updated. Display it (update=true) iff the current scanout kind is SURFACE. Reported-by: Akihiko Odaki <akihiko.odaki@gmail.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
2fa2386e38
commit
e1c676a254
@ -1114,6 +1114,10 @@ static void displaychangelistener_display_console(DisplayChangeListener *dcl,
|
||||
return;
|
||||
}
|
||||
|
||||
dpy_gfx_create_texture(con, con->surface);
|
||||
displaychangelistener_gfx_switch(dcl, con->surface,
|
||||
con->scanout.kind == SCANOUT_SURFACE);
|
||||
|
||||
if (con->scanout.kind == SCANOUT_DMABUF &&
|
||||
displaychangelistener_has_dmabuf(dcl)) {
|
||||
dcl->ops->dpy_gl_scanout_dmabuf(dcl, con->scanout.dmabuf);
|
||||
@ -1128,9 +1132,6 @@ static void displaychangelistener_display_console(DisplayChangeListener *dcl,
|
||||
con->scanout.texture.y,
|
||||
con->scanout.texture.width,
|
||||
con->scanout.texture.height);
|
||||
} else if (con->scanout.kind == SCANOUT_SURFACE) {
|
||||
dpy_gfx_create_texture(con, con->surface);
|
||||
displaychangelistener_gfx_switch(dcl, con->surface, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user