mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
egl-helpers.h: do not depend on X11 Window type, use EGLNativeWindowType
It was assumed that mesa provides the necessary X11 includes, but it is not always the case, as it can be configured without x11 support. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20190116113751.17177-1-alex.kanavin@gmail.com [ kraxel: codestyle fix (long line) ] Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
61e77a5f0c
commit
fbd57c754f
3 changed files with 5 additions and 4 deletions
|
@ -54,7 +54,8 @@ void gd_egl_init(VirtualConsole *vc)
|
|||
}
|
||||
|
||||
vc->gfx.ectx = qemu_egl_init_ctx();
|
||||
vc->gfx.esurface = qemu_egl_init_surface_x11(vc->gfx.ectx, x11_window);
|
||||
vc->gfx.esurface = qemu_egl_init_surface_x11
|
||||
(vc->gfx.ectx, (EGLNativeWindowType)x11_window);
|
||||
|
||||
assert(vc->gfx.esurface);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue