Browse Source

Update Assimp.cpp

Kim Kulling 3 years ago
parent
commit
e28becbaf5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      code/Common/Assimp.cpp

+ 2 - 0
code/Common/Assimp.cpp

@@ -1282,6 +1282,8 @@ ASSIMP_API void aiQuaternionInterpolate(
 
 
 // Ensure all symbols are linked correctly
 // Ensure all symbols are linked correctly
 #if ASSIMP_NEEDS_STB_IMAGE
 #if ASSIMP_NEEDS_STB_IMAGE
+    // Share stb_image's PNG loader with other importers/exporters instead of bringing our own copy.
+#   define STBI_ONLY_PNG
 #   define STB_IMAGE_STATIC
 #   define STB_IMAGE_STATIC
 #   define STB_IMAGE_IMPLEMENTATION
 #   define STB_IMAGE_IMPLEMENTATION
 #   include "Common/StbCommon.h"
 #   include "Common/StbCommon.h"