From c6b5eef347d85aa9d4c85de9a3ceca02459b64f6 Mon Sep 17 00:00:00 2001 From: LunaMoo Date: Fri, 4 Jun 2021 10:26:52 +0200 Subject: [PATCH] Disable NEON optimizations for libpng17 as a try to fix android texture replacement. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8dc0498dd9..9d631f162f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -272,6 +272,7 @@ endforeach() if(NOT MSVC) if(ANDROID) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") + add_definitions(-DPNG_ARM_NEON_OPT=0) endif() if(CLANG) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-switch -Wno-uninitialized")