Browse Source

Corrected issue

Compression API requires functions provided by stbi_image_write (DEFLATE compression)
raysan5 5 năm trước cách đây
mục cha
commit
427e543d84
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/textures.c

+ 1 - 1
src/textures.c

@@ -123,7 +123,7 @@
                                             // NOTE: Used to read image data (multiple formats support)
 #endif
 
-#if defined(SUPPORT_IMAGE_EXPORT)
+#if (defined(SUPPORT_IMAGE_EXPORT) || defined(SUPPORT_COMPRESSION_API))
     #define STBIW_MALLOC RL_MALLOC
     #define STBIW_FREE RL_FREE
     #define STBIW_REALLOC RL_REALLOC