comparison test/testoverlay2.c @ 5257:ec30f9d4c2a8

Fixed error check
author Sam Lantinga <slouken@libsdl.org>
date Fri, 11 Feb 2011 11:43:58 -0800
parents 16d5e8e90e01
children 7ace5f8f432f
comparison
equal deleted inserted replaced
5256:1b0de3574c58 5257:ec30f9d4c2a8
489 free(RawMooseData); 489 free(RawMooseData);
490 quit(4); 490 quit(4);
491 } 491 }
492 492
493 MooseTexture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12, SDL_TEXTUREACCESS_STREAMING, MOOSEPIC_W, MOOSEPIC_H); 493 MooseTexture = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_YV12, SDL_TEXTUREACCESS_STREAMING, MOOSEPIC_W, MOOSEPIC_H);
494 if (!renderer) { 494 if (!MooseTexture) {
495 fprintf(stderr, "Couldn't set create texture: %s\n", SDL_GetError()); 495 fprintf(stderr, "Couldn't set create texture: %s\n", SDL_GetError());
496 free(RawMooseData); 496 free(RawMooseData);
497 quit(5); 497 quit(5);
498 } 498 }
499 499