| #include "ui/egl-context.h" |
| QEMUGLContext qemu_egl_create_context(DisplayChangeListener *dcl, |
| EGL_CONTEXT_CLIENT_VERSION, params->major_ver, |
| EGL_CONTEXT_MINOR_VERSION_KHR, params->minor_ver, |
| ctx = eglCreateContext(qemu_egl_display, qemu_egl_config, |
| eglGetCurrentContext(), ctx_att); |
| void qemu_egl_destroy_context(DisplayChangeListener *dcl, QEMUGLContext ctx) |
| eglDestroyContext(qemu_egl_display, ctx); |
| int qemu_egl_make_context_current(DisplayChangeListener *dcl, |
| return eglMakeCurrent(qemu_egl_display, |
| EGL_NO_SURFACE, EGL_NO_SURFACE, ctx); |
| QEMUGLContext qemu_egl_get_current_context(DisplayChangeListener *dcl) |
| return eglGetCurrentContext(); |