test/testspriteminimal.c
changeset 5158 b3ccd1947786
parent 5147 ad50b3db78bd
child 5517 aa339c0dca2d
     1.1 --- a/test/testspriteminimal.c	Thu Feb 03 00:22:18 2011 -0800
     1.2 +++ b/test/testspriteminimal.c	Thu Feb 03 00:54:29 2011 -0800
     1.3 @@ -60,11 +60,7 @@
     1.4      }
     1.5  
     1.6      /* Create textures from the image */
     1.7 -    sprite = SDL_CreateTextureFromSurface(renderer, 0, temp);
     1.8 -    if (!sprite) {
     1.9 -        SDL_SetColorKey(temp, 0, 0);
    1.10 -        sprite = SDL_CreateTextureFromSurface(renderer, 0, temp);
    1.11 -    }
    1.12 +    sprite = SDL_CreateTextureFromSurface(renderer, temp);
    1.13      if (!sprite) {
    1.14          fprintf(stderr, "Couldn't create texture: %s\n", SDL_GetError());
    1.15          SDL_FreeSurface(temp);