mirror of
https://github.com/yawut/SDL.git
synced 2026-04-24 23:37:09 -05:00
Fixed error check
This commit is contained in:
parent
65eb03e87b
commit
37522ace07
|
|
@ -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…
Reference in New Issue
Block a user