Mercurial > sdl-ios-xcode
changeset 5257:ec30f9d4c2a8
Fixed error check
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 11 Feb 2011 11:43:58 -0800 |
parents | 1b0de3574c58 |
children | 9e70b360f423 |
files | test/testoverlay2.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/test/testoverlay2.c Fri Feb 11 10:18:34 2011 -0800 +++ b/test/testoverlay2.c Fri Feb 11 11:43:58 2011 -0800 @@ -491,7 +491,7 @@ } MooseTexture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12, SDL_TEXTUREACCESS_STREAMING, MOOSEPIC_W, MOOSEPIC_H); - if (!renderer) { + if (!MooseTexture) { fprintf(stderr, "Couldn't set create texture: %s\n", SDL_GetError()); free(RawMooseData); quit(5);