Browse Source

Expand stb_image thread-local workaround to apply to iOS devices

Alex Szpakowski 4 years ago
parent
commit
d419795a28
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/modules/image/magpie/STBHandler.cpp

+ 2 - 2
src/modules/image/magpie/STBHandler.cpp

@@ -29,9 +29,9 @@ static void loveSTBIAssert(bool test, const char *teststr)
 		throw love::Exception("Could not decode image (stb_image assertion '%s' failed)", teststr);
 		throw love::Exception("Could not decode image (stb_image assertion '%s' failed)", teststr);
 }
 }
 
 
-// Workaround when building for iOS Simulator with deployment target=8.0
+// Workaround when building for iOS with deployment target=8.0
 #include "common/config.h"
 #include "common/config.h"
-#if defined(LOVE_IOS) && TARGET_OS_SIMULATOR == 1
+#if defined(LOVE_IOS)
 #define STBI_NO_THREAD_LOCALS
 #define STBI_NO_THREAD_LOCALS
 #endif
 #endif