From 4782aeb79fbcb70bb96b52f6d9bc7cadb3cf7d58 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 8 May 2015 11:30:51 +0200 Subject: gtk/opengl: add opengl context and scanout support (egl) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows virtio-gpu to render in 3d mode. Uses egl, for gtk versions 3.14 and older. Signed-off-by: Gerd Hoffmann Reviewed-by: Marc-André Lureau --- ui/gtk.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ui/gtk.c') diff --git a/ui/gtk.c b/ui/gtk.c index 3057cdc3f7..e6e35323b1 100644 --- a/ui/gtk.c +++ b/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 -- cgit 1.4.1