src/video/windows/SDL_windowsopengles.c
changeset 9773 dad226bc43a5
parent 9619 b94b6d0bff0f
child 9998 f67cf37e9cd4
equal deleted inserted replaced
9772:ef27c10db4bf 9773:dad226bc43a5
   109     SDL_GLContext current_ctx = SDL_GL_GetCurrentContext();
   109     SDL_GLContext current_ctx = SDL_GL_GetCurrentContext();
   110 
   110 
   111 
   111 
   112     if (_this->egl_data == NULL) {
   112     if (_this->egl_data == NULL) {
   113         if (SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY) < 0) {
   113         if (SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY) < 0) {
       
   114             SDL_EGL_UnloadLibrary(_this);
   114             return -1;
   115             return -1;
   115         }
   116         }
   116     }
   117     }
   117   
   118   
   118     /* Create the GLES window surface */
   119     /* Create the GLES window surface */