mirror of
https://github.com/DarkStore-3DS/bannertool.git
synced 2026-12-06 11:17:16 +00:00
Remove incorrect image depth check.
This commit is contained in:
1 parent
fa4f1db05e
commit
8f47ad5386
1 file changed
-7
@@ -121,13 +121,6 @@ static void* load_image(const std::string& file, u32 width, u32 height) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if(imgDepth != STBI_rgb_alpha) {
|
||||
stbi_image_free(img);
|
||||
|
||||
printf("ERROR: Decoded image does't match expected format (%d, wanted %d).\n", imgDepth, STBI_rgb_alpha);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return img;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user