Fixed error check
This commit is contained in:
parent
bff537f964
commit
07f6bb6e16
1 changed files with 1 additions and 1 deletions
|
@ -491,7 +491,7 @@ main(int argc, char **argv)
|
|||
}
|
||||
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue