src/video/SDL_video.c
changeset 7596 45e5c263c096
parent 7566 b14d00c30095
child 7608 3f487d7d2d1d
equal deleted inserted replaced
7595:ede2237fcebf 7596:45e5c263c096
  2852 
  2852 
  2853     if (!(window->flags & SDL_WINDOW_OPENGL)) {
  2853     if (!(window->flags & SDL_WINDOW_OPENGL)) {
  2854         SDL_SetError("The specified window isn't an OpenGL window");
  2854         SDL_SetError("The specified window isn't an OpenGL window");
  2855         return;
  2855         return;
  2856     }
  2856     }
       
  2857 
       
  2858     if (SDL_GL_GetCurrentWindow() != window) {
       
  2859         SDL_SetError("The specified window has not been made current");
       
  2860         return;
       
  2861     }
       
  2862 
  2857     _this->GL_SwapWindow(_this, window);
  2863     _this->GL_SwapWindow(_this, window);
  2858 }
  2864 }
  2859 
  2865 
  2860 void
  2866 void
  2861 SDL_GL_DeleteContext(SDL_GLContext context)
  2867 SDL_GL_DeleteContext(SDL_GLContext context)