mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
4083733db5
commit
cb47dc9ab9
3 changed files with 163 additions and 1 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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue