test/testoverlay2.c
changeset 5252 ec30f9d4c2a8
parent 5216 16d5e8e90e01
child 5264 7ace5f8f432f
--- 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);