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