test/testgl2.c
changeset 7787 e6f3e8fc96ea
parent 7746 6a05d7352575
child 8062 4fc5f66d63cc
     1.1 --- a/test/testgl2.c	Sat Oct 05 17:08:19 2013 +0200
     1.2 +++ b/test/testgl2.c	Sat Oct 05 19:09:03 2013 -0700
     1.3 @@ -340,6 +340,8 @@
     1.4          }
     1.5          for (i = 0; i < state->num_windows; ++i) {
     1.6              int w, h;
     1.7 +            if (state->windows[i] == NULL)
     1.8 +                continue;
     1.9              SDL_GL_MakeCurrent(state->windows[i], context);
    1.10              SDL_GL_GetDrawableSize(state->windows[i], &w, &h);
    1.11              glViewport(0, 0, w, h);