From 74740c5a21c05116b92deba8e462f815232fd3bc Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 13 Jan 2021 22:50:49 -0800 Subject: [PATCH] Remove LODEPNG_NO_COMPILE_ZLIB This fixes a segfault, because we would then pass compressed image data to SDL_ConvertSurfaceFormat() in LoadImage(). I didn't test my previous PR. Whoops. --- desktop_version/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt index 24615252..ea205fd6 100644 --- a/desktop_version/CMakeLists.txt +++ b/desktop_version/CMakeLists.txt @@ -242,7 +242,6 @@ TARGET_COMPILE_DEFINITIONS(lodepng-static PRIVATE -DLODEPNG_NO_COMPILE_ALLOCATORS -DLODEPNG_NO_COMPILE_DISK -DLODEPNG_NO_COMPILE_ENCODER - -DLODEPNG_NO_COMPILE_ZLIB ) # Static Dependencies