test/testrendertarget.c
changeset 6247 b6212690f78d
parent 6232 37e8d0736366
child 6785 c094c438c0a6
     1.1 --- a/test/testrendertarget.c	Sat Jan 21 22:22:30 2012 -0500
     1.2 +++ b/test/testrendertarget.c	Sun Jan 22 01:26:28 2012 -0500
     1.3 @@ -99,7 +99,7 @@
     1.4      SDL_RenderGetViewport(s->renderer, &viewport);
     1.5  
     1.6      target = SDL_CreateTexture(s->renderer, SDL_PIXELFORMAT_ARGB8888, SDL_TEXTUREACCESS_TARGET, viewport.w, viewport.h);
     1.7 -    SDL_SetTargetTexture(s->renderer, target);
     1.8 +    SDL_SetRenderTarget(s->renderer, target);
     1.9  
    1.10      /* Draw the background */
    1.11      SDL_RenderCopy(s->renderer, s->background, NULL, NULL);
    1.12 @@ -121,7 +121,7 @@
    1.13  
    1.14      SDL_RenderCopy(s->renderer, s->sprite, NULL, &s->sprite_rect);
    1.15  
    1.16 -    SDL_SetTargetTexture(s->renderer, NULL);
    1.17 +    SDL_SetRenderTarget(s->renderer, NULL);
    1.18      SDL_RenderCopy(s->renderer, target, NULL, NULL);
    1.19      SDL_DestroyTexture(target);
    1.20