diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2014-11-19 14:56:46 +0100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:28:22 -0600 |
commit | b6ba9ac8baf2ac7c59dfdf66fdb332f9c4300581 (patch) | |
tree | b67f4b9b059492b0e95c49989927ea2cb99d196c /ui/sdl2.c | |
parent | 9286a3039ae84d5ca1ba5de83e1ed5f24f8e72c6 (diff) | |
download | hqemu-b6ba9ac8baf2ac7c59dfdf66fdb332f9c4300581.zip hqemu-b6ba9ac8baf2ac7c59dfdf66fdb332f9c4300581.tar.gz |
sdl2/opengl: add opengl context and scanout support
This allows virtio-gpu to render in 3d mode.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'ui/sdl2.c')
-rw-r--r-- | ui/sdl2.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -700,6 +700,13 @@ static const DisplayChangeListenerOps dcl_gl_ops = { .dpy_refresh = sdl2_gl_refresh, .dpy_mouse_set = sdl_mouse_warp, .dpy_cursor_define = sdl_mouse_define, + + .dpy_gl_ctx_create = sdl2_gl_create_context, + .dpy_gl_ctx_destroy = sdl2_gl_destroy_context, + .dpy_gl_ctx_make_current = sdl2_gl_make_context_current, + .dpy_gl_ctx_get_current = sdl2_gl_get_current_context, + .dpy_gl_scanout = sdl2_gl_scanout, + .dpy_gl_update = sdl2_gl_scanout_flush, }; #endif |