Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bug 1412 - Patch - Software renderer crash
Dimitris Zenios Date: 2012-02-06 15:12:37 GMT

Hi gus there is a bug when using software renderer and the window
surface gets destroyed (Fullscreen and back).The solution is easy
  • Loading branch information
slouken committed Feb 8, 2012
1 parent dea51d2 commit 1b40a1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/render/software/SDL_render_sw.c
Expand Up @@ -183,6 +183,7 @@ SW_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)

if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
data->surface = NULL;
data->window = NULL;
}
}

Expand Down

0 comments on commit 1b40a1e

Please sign in to comment.