summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJohannes Barthelmes <[email protected]>2023-09-02 11:41:33 +0200
committerGitHub <[email protected]>2023-09-02 11:41:33 +0200
commit0f39051562909875d97a0156eef5d760f34d6390 (patch)
tree932ee8b45cbf1459a2b5568b2d7d3c488643af2c /src
parentec6d3bb688ae8c137152eca7cdef9885badd9bee (diff)
downloadraylib-0f39051562909875d97a0156eef5d760f34d6390.tar.gz
raylib-0f39051562909875d97a0156eef5d760f34d6390.zip
Fix uninitialized thread-locals in stbi #3282 (#3283)
Diffstat (limited to 'src')
-rw-r--r--src/rtextures.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rtextures.c b/src/rtextures.c
index b88aeb15..a97cb0b3 100644
--- a/src/rtextures.c
+++ b/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)