Fixed error check
authorSam Lantinga <slouken@libsdl.org>
Fri, 11 Feb 2011 11:43:58 -0800
changeset 5252 ec30f9d4c2a8
parent 5251 1b0de3574c58
child 5253 9e70b360f423
Fixed error check
test/testoverlay2.c
--- 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);