test/testsprite2.c
changeset 5158 b3ccd1947786
parent 5147 ad50b3db78bd
child 5184 d976b67150c5
     1.1 --- a/test/testsprite2.c	Thu Feb 03 00:22:18 2011 -0800
     1.2 +++ b/test/testsprite2.c	Thu Feb 03 00:54:29 2011 -0800
     1.3 @@ -77,11 +77,7 @@
     1.4      /* Create textures from the image */
     1.5      for (i = 0; i < state->num_windows; ++i) {
     1.6          SDL_Renderer *renderer = state->renderers[i];
     1.7 -        sprites[i] = SDL_CreateTextureFromSurface(renderer, 0, temp);
     1.8 -        if (!sprites[i]) {
     1.9 -            SDL_SetColorKey(temp, 0, 0);
    1.10 -            sprites[i] = SDL_CreateTextureFromSurface(renderer, 0, temp);
    1.11 -        }
    1.12 +        sprites[i] = SDL_CreateTextureFromSurface(renderer, temp);
    1.13          if (!sprites[i]) {
    1.14              fprintf(stderr, "Couldn't create texture: %s\n", SDL_GetError());
    1.15              SDL_FreeSurface(temp);