Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed a crash if creating accelerated renderer after accessing window…
… surface.

Partially fixes Bugzilla #3196.
  • Loading branch information
philippwiesemann committed Dec 29, 2015
1 parent 696cd79 commit c41feca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/SDL_video.c
Expand Up @@ -1488,6 +1488,7 @@ SDL_RecreateWindow(SDL_Window * window, Uint32 flags)
if (window->surface) {
window->surface->flags &= ~SDL_DONTFREE;
SDL_FreeSurface(window->surface);
window->surface = NULL;
}
if (_this->DestroyWindowFramebuffer) {
_this->DestroyWindowFramebuffer(_this, window);
Expand Down

0 comments on commit c41feca

Please sign in to comment.