src/video/win32/SDL_win32window.c
changeset 3057 089a77aebb7d
parent 3045 9acb9f0f7f0d
child 3097 0d12e8f1de3c
equal deleted inserted replaced
3056:a434fe6360df 3057:089a77aebb7d
   519 {
   519 {
   520     SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata;
   520     SDL_VideoData *videodata = (SDL_VideoData *) _this->driverdata;
   521     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
   521     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
   522 
   522 
   523     if (data) {
   523     if (data) {
   524 #ifdef SDL_VIDEO_OPENGL_WGL
       
   525         if (window->flags & SDL_WINDOW_OPENGL) {
       
   526             WIN_GL_CleanupWindow(_this, window);
       
   527         }
       
   528 #endif
       
   529         ReleaseDC(data->hwnd, data->hdc);
   524         ReleaseDC(data->hwnd, data->hdc);
   530         if (data->created) {
   525         if (data->created) {
   531             if (videodata->wintabDLL) {
   526             if (videodata->wintabDLL) {
   532                 videodata->WTClose(g_hCtx[window->id]);
   527                 videodata->WTClose(g_hCtx[window->id]);
   533             }
   528             }