Fixed bug 1412 - Patch - Software renderer crash
authorSam Lantinga <slouken@libsdl.org>
Tue, 07 Feb 2012 19:34:24 -0500
changeset 6283 03a7ceb3487b
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
--- a/src/render/software/SDL_render_sw.c	Tue Feb 07 02:11:42 2012 -0500
+++ b/src/render/software/SDL_render_sw.c	Tue Feb 07 19:34:24 2012 -0500
@@ -183,6 +183,7 @@
 
     if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
         data->surface = NULL;
+        data->window = NULL;
     }
 }