test/testrendertarget.c
changeset 7787 e6f3e8fc96ea
parent 7781 3023b0270c94
child 8149 681eb46b8ac4
equal deleted inserted replaced
7786:cfc1285375e1 7787:e6f3e8fc96ea
   283         ++frames;
   283         ++frames;
   284         while (SDL_PollEvent(&event)) {
   284         while (SDL_PollEvent(&event)) {
   285             SDLTest_CommonEvent(state, &event, &done);
   285             SDLTest_CommonEvent(state, &event, &done);
   286         }
   286         }
   287         for (i = 0; i < state->num_windows; ++i) {
   287         for (i = 0; i < state->num_windows; ++i) {
       
   288             if (state->windows[i] == NULL)
       
   289                 continue;
   288             if (test_composite) {
   290             if (test_composite) {
   289                 if (!DrawComposite(&drawstates[i])) done = 1;
   291                 if (!DrawComposite(&drawstates[i])) done = 1;
   290             } else {
   292             } else {
   291                 if (!Draw(&drawstates[i])) done = 1;
   293                 if (!Draw(&drawstates[i])) done = 1;
   292             }
   294             }