mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
gtk/opengl: add opengl context and scanout support (egl)
This allows virtio-gpu to render in 3d mode. Uses egl, for gtk versions 3.14 and older. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
6c18744d0f
commit
4782aeb79f
3 changed files with 146 additions and 8 deletions
7
ui/gtk.c
7
ui/gtk.c
|
@ -615,6 +615,13 @@ static const DisplayChangeListenerOps dcl_egl_ops = {
|
|||
.dpy_refresh = gd_egl_refresh,
|
||||
.dpy_mouse_set = gd_mouse_set,
|
||||
.dpy_cursor_define = gd_cursor_define,
|
||||
|
||||
.dpy_gl_ctx_create = gd_egl_create_context,
|
||||
.dpy_gl_ctx_destroy = qemu_egl_destroy_context,
|
||||
.dpy_gl_ctx_make_current = gd_egl_make_current,
|
||||
.dpy_gl_ctx_get_current = qemu_egl_get_current_context,
|
||||
.dpy_gl_scanout = gd_egl_scanout,
|
||||
.dpy_gl_update = gd_egl_scanout_flush,
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue