From ae27b06510daf03a7749a662f88ec7c48211c8b4 Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Fri, 13 Apr 2018 00:00:00 -0700 Subject: [PATCH] Remove incorrect image depth check. --- source/cmd.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source/cmd.cpp b/source/cmd.cpp index 1afc668..f31857f 100644 --- a/source/cmd.cpp +++ b/source/cmd.cpp @@ -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; }