src/video/windows/SDL_windowsopengles.c
changeset 11175 cbc6a8a5b701
parent 10800 f3439b0eb486
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11174:3767cdd2d64b 11175:cbc6a8a5b701
    50         return SDL_SetError("SDL not configured with OpenGL/WGL support");
    50         return SDL_SetError("SDL not configured with OpenGL/WGL support");
    51 #endif
    51 #endif
    52     }
    52     }
    53     
    53     
    54     if (_this->egl_data == NULL) {
    54     if (_this->egl_data == NULL) {
    55         return SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY);
    55         return SDL_EGL_LoadLibrary(_this, NULL, EGL_DEFAULT_DISPLAY, 0);
    56     }
    56     }
    57 
    57 
    58     return 0;
    58     return 0;
    59 }
    59 }
    60 
    60 
   108     SDL_Window *current_win = SDL_GL_GetCurrentWindow();
   108     SDL_Window *current_win = SDL_GL_GetCurrentWindow();
   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) < 0) {
   114             SDL_EGL_UnloadLibrary(_this);
   114             SDL_EGL_UnloadLibrary(_this);
   115             return -1;
   115             return -1;
   116         }
   116         }
   117     }
   117     }
   118   
   118