diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-05-05 12:40:58 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-05-12 12:02:48 +0200 |
commit | e1913dbb58e7a4ab0c2dd088cc3b397b8daed8c5 (patch) | |
tree | c2e9419998c547533908c7232325ef8f6d7db166 /include/ui | |
parent | 9f728c7940dfade366fed01d8f43f1e5283f95d8 (diff) | |
download | qemu-e1913dbb58e7a4ab0c2dd088cc3b397b8daed8c5.zip |
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: 0ea1523fb6703aa0dcd65e66b59e96fec028e60a
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 20170505104101.30589-4-kraxel@redhat.com
Diffstat (limited to 'include/ui')
-rw-r--r-- | include/ui/egl-helpers.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ui/egl-helpers.h b/include/ui/egl-helpers.h index fec7da14a5..c785d60e91 100644 --- a/include/ui/egl-helpers.h +++ b/include/ui/egl-helpers.h @@ -21,7 +21,8 @@ int egl_get_fd_for_texture(uint32_t tex_id, EGLint *stride, EGLint *fourcc); EGLSurface qemu_egl_init_surface_x11(EGLContext ectx, Window win); -int qemu_egl_init_dpy(EGLNativeDisplayType dpy); +int qemu_egl_init_dpy_x11(EGLNativeDisplayType dpy); +int qemu_egl_init_dpy_mesa(EGLNativeDisplayType dpy); EGLContext qemu_egl_init_ctx(void); #endif /* EGL_HELPERS_H */ |