src/SDL_compat.c
changeset 1913 83420da906a5
parent 1912 8d384b647307
child 1924 69217fdd2c0a
equal deleted inserted replaced
1912:8d384b647307 1913:83420da906a5
   335                             SDL_VideoPaletteChanged, NULL);
   335                             SDL_VideoPaletteChanged, NULL);
   336         SDL_FreeSurface(SDL_VideoSurface);
   336         SDL_FreeSurface(SDL_VideoSurface);
   337         SDL_VideoSurface = NULL;
   337         SDL_VideoSurface = NULL;
   338     }
   338     }
   339     if (SDL_VideoContext) {
   339     if (SDL_VideoContext) {
   340         SDL_GL_MakeCurrent(0, SDL_VideoContext);
   340         SDL_GL_MakeCurrent(0, NULL);
   341         SDL_GL_DeleteContext(SDL_VideoContext);
   341         SDL_GL_DeleteContext(SDL_VideoContext);
   342         SDL_VideoContext = NULL;
   342         SDL_VideoContext = NULL;
   343     }
   343     }
   344     if (SDL_VideoWindow) {
   344     if (SDL_VideoWindow) {
   345         SDL_GetWindowPosition(SDL_VideoWindow, &window_x, &window_y);
   345         SDL_GetWindowPosition(SDL_VideoWindow, &window_x, &window_y);