src/test/SDL_test_common.c
changeset 7993 771138df6c62
parent 7949 7eac62311176
child 8010 ffd65b452bd2
     1.1 --- a/src/test/SDL_test_common.c	Fri Nov 15 23:20:50 2013 -0500
     1.2 +++ b/src/test/SDL_test_common.c	Fri Nov 15 22:01:58 2013 -0800
     1.3 @@ -809,6 +809,9 @@
     1.4          state->renderers =
     1.5              (SDL_Renderer **) SDL_malloc(state->num_windows *
     1.6                                          sizeof(*state->renderers));
     1.7 +        state->targets =
     1.8 +            (SDL_Texture **) SDL_malloc(state->num_windows *
     1.9 +                                        sizeof(*state->targets));
    1.10          if (!state->windows || !state->renderers) {
    1.11              fprintf(stderr, "Out of memory!\n");
    1.12              return SDL_FALSE;
    1.13 @@ -861,6 +864,7 @@
    1.14              SDL_ShowWindow(state->windows[i]);
    1.15  
    1.16              state->renderers[i] = NULL;
    1.17 +            state->targets[i] = NULL;
    1.18  
    1.19              if (!state->skip_renderer
    1.20                  && (state->renderdriver