Fixed bug 1412 - Patch - Software renderer crash
authorSam Lantinga <slouken@libsdl.org>
Tue, 07 Feb 2012 19:34:24 -0500
changeset 628303a7ceb3487b
parent 6282 64ae376becce
child 6284 1893d507ba42
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
src/render/software/SDL_render_sw.c
     1.1 --- a/src/render/software/SDL_render_sw.c	Tue Feb 07 02:11:42 2012 -0500
     1.2 +++ b/src/render/software/SDL_render_sw.c	Tue Feb 07 19:34:24 2012 -0500
     1.3 @@ -183,6 +183,7 @@
     1.4  
     1.5      if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
     1.6          data->surface = NULL;
     1.7 +        data->window = NULL;
     1.8      }
     1.9  }
    1.10