浏览代码

Corrected issue

Compression API requires functions provided by stbi_image_write (DEFLATE compression)
raysan5 5 年之前
父节点
当前提交
427e543d84
共有 1 个文件被更改,包括 1 次插入1 次删除
  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