This patch is using SDL_GL_GetCurrentContext() to get a context and meet an
issue with SDL_GL_CONTEXT_EGL which is deprecated since SDL 2.1.
Before SDL 2.1, SDL_GL_CONTEXT_EGL can be used with SDL_GL_SetAttribute, so
that an EGLContext can be created with SDL_GL_GetCurrentContext().
Since SDL_GL
This RFC patch is based on Qemu UI on-going work of rendering guest
framebuffer through dma-buf interface, to show a protype of SDL with
dma-buf interface.
Against branch: work/intel-vgpu
Signed-off-by: Tina Zhang
---
include/ui/sdl2.h | 11
ui/sdl2-gl.c | 84 +