mirror of
https://github.com/yquake2/ref_vk.git
synced 2024-11-12 23:54:28 +00:00
Switch off STB thread local support.
Quake II is a single threaded application, so we don't require STB to be thread save. Omitting thread local support prevents mingw from requiring pthreads.
This commit is contained in:
parent
ed0b80a3d4
commit
6729698611
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