mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-25 22:10:59 +00:00
Disable the thread local stuff in stb_image.h, int breaks Windows.
The code is building fine but at startup the rendere library cannot by loaded: "LoadLibrary returned 126" Disable thread local as a band-aid fix, it might be worth to have a deeper look and figure out what exactly goes wrong. Closes #762.
This commit is contained in:
parent
84746289fa
commit
a05508240f
1 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,8 @@
|
|||
#define STBI_MALLOC(sz) malloc(sz)
|
||||
#define STBI_REALLOC(p,sz) realloc(p,sz)
|
||||
#define STBI_FREE(p) free(p)
|
||||
// Switch of the thread local stuff. Breaks mingw under Windows.
|
||||
#define STBI_NO_THREAD_LOCALS
|
||||
// include implementation part of stb_image into this file
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include "stb_image.h"
|
||||
|
|
Loading…
Reference in a new issue