mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
ui/console: egl-headless is compatible with non-gl listeners
Fix a regression introduced by commit 5e79d516e
("ui: split the GL
context in a different object").
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
a62c4a178f
commit
cd19c25fbf
1 changed files with 8 additions and 0 deletions
|
@ -170,6 +170,14 @@ static bool
|
||||||
egl_is_compatible_dcl(DisplayGLCtx *dgc,
|
egl_is_compatible_dcl(DisplayGLCtx *dgc,
|
||||||
DisplayChangeListener *dcl)
|
DisplayChangeListener *dcl)
|
||||||
{
|
{
|
||||||
|
if (!dcl->ops->dpy_gl_update) {
|
||||||
|
/*
|
||||||
|
* egl-headless is compatible with all 2d listeners, as it blits the GL
|
||||||
|
* updates on the 2d console surface.
|
||||||
|
*/
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return dcl->ops == &egl_ops;
|
return dcl->ops == &egl_ops;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue