src/video/SDL_video.c
changeset 9988 08d023f75d78
parent 9958 687e118144c7
child 9998 f67cf37e9cd4
equal deleted inserted replaced
9987:d64783aac765 9988:08d023f75d78
  1486 
  1486 
  1487     /* Tear down the old native window */
  1487     /* Tear down the old native window */
  1488     if (window->surface) {
  1488     if (window->surface) {
  1489         window->surface->flags &= ~SDL_DONTFREE;
  1489         window->surface->flags &= ~SDL_DONTFREE;
  1490         SDL_FreeSurface(window->surface);
  1490         SDL_FreeSurface(window->surface);
       
  1491         window->surface = NULL;
  1491     }
  1492     }
  1492     if (_this->DestroyWindowFramebuffer) {
  1493     if (_this->DestroyWindowFramebuffer) {
  1493         _this->DestroyWindowFramebuffer(_this, window);
  1494         _this->DestroyWindowFramebuffer(_this, window);
  1494     }
  1495     }
  1495     if (_this->DestroyWindow && !(flags & SDL_WINDOW_FOREIGN)) {
  1496     if (_this->DestroyWindow && !(flags & SDL_WINDOW_FOREIGN)) {