Fixed error check

This commit is contained in:
Sam Lantinga 2011-02-11 11:43:58 -08:00
parent bff537f964
commit 07f6bb6e16

View file

@ -491,7 +491,7 @@ main(int argc, char **argv)
} }
MooseTexture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12, SDL_TEXTUREACCESS_STREAMING, MOOSEPIC_W, MOOSEPIC_H); 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()); fprintf(stderr, "Couldn't set create texture: %s\n", SDL_GetError());
free(RawMooseData); free(RawMooseData);
quit(5); quit(5);