Fixed error check
authorSam Lantinga <slouken@libsdl.org>
Fri, 11 Feb 2011 11:43:58 -0800
changeset 5252ec30f9d4c2a8
parent 5251 1b0de3574c58
child 5253 9e70b360f423
Fixed error check
test/testoverlay2.c
     1.1 --- a/test/testoverlay2.c	Fri Feb 11 10:18:34 2011 -0800
     1.2 +++ b/test/testoverlay2.c	Fri Feb 11 11:43:58 2011 -0800
     1.3 @@ -491,7 +491,7 @@
     1.4      }
     1.5  
     1.6      MooseTexture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12, SDL_TEXTUREACCESS_STREAMING, MOOSEPIC_W, MOOSEPIC_H);
     1.7 -    if (!renderer) {
     1.8 +    if (!MooseTexture) {
     1.9          fprintf(stderr, "Couldn't set create texture: %s\n", SDL_GetError());
    1.10          free(RawMooseData);
    1.11          quit(5);