21 #include "../../SDL_internal.h"
23 #if SDL_VIDEO_DRIVER_WINDOWS && SDL_VIDEO_OPENGL_EGL
33 WIN_GLES_LoadLibrary(
_THIS,
const char *
path) {
37 #if SDL_VIDEO_OPENGL_WGL
38 WIN_GLES_UnloadLibrary(
_this);
48 return WIN_GL_LoadLibrary(
_this, path);
50 return SDL_SetError(
"SDL not configured with OpenGL/WGL support");
70 WIN_GLES_UnloadLibrary(
_this);
81 if (WIN_GL_LoadLibrary(
_this,
NULL) != 0) {
85 return WIN_GL_CreateContext(
_this, window);
96 SDL_EGL_DeleteContext(
_this, context);
97 WIN_GLES_UnloadLibrary(
_this);
100 SDL_EGL_SwapWindow_impl(WIN)
101 SDL_EGL_MakeCurrent_impl(WIN)
114 SDL_EGL_UnloadLibrary(
_this);
123 return SDL_SetError(
"Could not create GLES window surface");
126 return WIN_GLES_MakeCurrent(
_this, current_win, current_ctx);