Browse Source

Fix uninitialized thread-locals in stbi #3282 (#3283)

Johannes Barthelmes 1 year ago
parent
commit
0f39051562
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/rtextures.c

+ 2 - 0
src/rtextures.c

@@ -147,6 +147,8 @@
     #define STBI_FREE RL_FREE
     #define STBI_REALLOC RL_REALLOC
 
+    #define STBI_NO_THREAD_LOCALS
+
     #define STB_IMAGE_IMPLEMENTATION
     #include "external/stb_image.h"         // Required for: stbi_load_from_file()
                                             // NOTE: Used to read image data (multiple formats support)