Skip to content

Commit

Permalink
Exit on error from stb_image
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Aug 20, 2015
1 parent 3ed2e75 commit 498dcf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sh_image.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ void img_load_from_file(image_t *img, const char* file)
stbi_image_free(ptr);
} else {
perror("stb_image error");
exit(1);
}
}

Expand Down

0 comments on commit 498dcf6

Please sign in to comment.