changeset 7787 | e6f3e8fc96ea |
parent 7639 | 9406b7dd2f2d |
child 7794 | 7995e0920bf9 |
--- a/test/testgles.c Sat Oct 05 17:08:19 2013 +0200 +++ b/test/testgles.c Sat Oct 05 19:09:03 2013 -0700 @@ -312,6 +312,8 @@ SDLTest_CommonEvent(state, &event, &done); } for (i = 0; i < state->num_windows; ++i) { + if (state->windows[i] == NULL) + continue; status = SDL_GL_MakeCurrent(state->windows[i], context[i]); if (status) { SDL_Log("SDL_GL_MakeCurrent(): %s\n", SDL_GetError());