test/testdraw2.c
changeset 7787 e6f3e8fc96ea
parent 7639 9406b7dd2f2d
child 8149 681eb46b8ac4
--- a/test/testdraw2.c	Sat Oct 05 17:08:19 2013 +0200
+++ b/test/testdraw2.c	Sat Oct 05 19:09:03 2013 -0700
@@ -253,6 +253,8 @@
         }
         for (i = 0; i < state->num_windows; ++i) {
             SDL_Renderer *renderer = state->renderers[i];
+            if (state->windows[i] == NULL)
+                continue;
             SDL_SetRenderDrawColor(renderer, 0xA0, 0xA0, 0xA0, 0xFF);
             SDL_RenderClear(renderer);