src/video/windows/SDL_windowswindow.c
changeset 7559 0dd3b05797f9
parent 7556 574f465da18a
child 7583 7e053ad01aa3
     1.1 --- a/src/video/windows/SDL_windowswindow.c	Wed Jul 31 21:22:09 2013 -0700
     1.2 +++ b/src/video/windows/SDL_windowswindow.c	Thu Aug 01 00:27:22 2013 -0400
     1.3 @@ -231,15 +231,10 @@
     1.4      }
     1.5  #if SDL_VIDEO_OPENGL_WGL
     1.6      if (window->flags & SDL_WINDOW_OPENGL) {
     1.7 -        /* The current context is lost in SDL_GL_SetupWindow; recover it. */
     1.8 -        SDL_Window *current_win = SDL_GL_GetCurrentWindow();
     1.9 -        SDL_GLContext current_ctx = SDL_GL_GetCurrentContext();
    1.10          if (WIN_GL_SetupWindow(_this, window) < 0) {
    1.11              WIN_DestroyWindow(_this, window);
    1.12 -            WIN_GL_MakeCurrent(_this, current_win, current_ctx);
    1.13              return -1;
    1.14          }
    1.15 -        WIN_GL_MakeCurrent(_this, current_win, current_ctx);
    1.16      }
    1.17  #endif
    1.18      return 0;