| | |
| | | #include "SDL_windowsvideo.h" |
| | | #include "SDL_windowsopengles.h" |
| | | #include "SDL_windowsopengl.h" |
| | | #include "SDL_log.h" |
| | | |
| | | /* EGL implementation of SDL OpenGL support */ |
| | | |
| | |
| | | SDL_Window *current_win = SDL_GL_GetCurrentWindow(); |
| | | SDL_GLContext current_ctx = SDL_GL_GetCurrentContext(); |
| | | |
| | | |
| | | if (_this->egl_data == NULL) { |
| | | SDL_assert(!_this->gl_config.driver_loaded); |
| | | if (SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY, 0) < 0) { |
| | | SDL_EGL_UnloadLibrary(_this); |
| | | return -1; |
| | | } |
| | | _this->gl_config.driver_loaded = 1; |
| | | } |
| | | |
| | | /* Create the GLES window surface */ |