mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-11 16:00:50 -07:00
egl-helpers: fix display init for x11
When running on gtk we need X11 platform not mesa platform.
Create separate functions for mesa and x11 so we can keep
the egl #ifdef mess local to egl-helpers.c
Fixes: 0ea1523fb6
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20170505104101.30589-4-kraxel@redhat.com
This commit is contained in:
parent
9f728c7940
commit
e1913dbb58
3 changed files with 29 additions and 10 deletions
|
|
@ -246,7 +246,7 @@ void gtk_egl_init(void)
|
|||
GdkDisplay *gdk_display = gdk_display_get_default();
|
||||
Display *x11_display = gdk_x11_display_get_xdisplay(gdk_display);
|
||||
|
||||
if (qemu_egl_init_dpy(x11_display) < 0) {
|
||||
if (qemu_egl_init_dpy_x11(x11_display) < 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue