mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed asmjs build.
This commit is contained in:
parent
3d2405232e
commit
c0ae9d671b
1 changed files with 3 additions and 1 deletions
|
@ -200,7 +200,7 @@ namespace bgfx
|
||||||
|
|
||||||
Caps g_caps;
|
Caps g_caps;
|
||||||
|
|
||||||
#if !defined(BX_THREAD_LOCAL)
|
#if BGFX_CONFIG_MULTITHREADED && !defined(BX_THREAD_LOCAL)
|
||||||
class ThreadData
|
class ThreadData
|
||||||
{
|
{
|
||||||
BX_CLASS(ThreadData
|
BX_CLASS(ThreadData
|
||||||
|
@ -240,6 +240,8 @@ namespace bgfx
|
||||||
};
|
};
|
||||||
|
|
||||||
static ThreadData s_threadIndex(0);
|
static ThreadData s_threadIndex(0);
|
||||||
|
#elif !BGFX_CONFIG_MULTITHREADED
|
||||||
|
static uint32_t s_threadIndex(0);
|
||||||
#else
|
#else
|
||||||
static BX_THREAD_LOCAL uint32_t s_threadIndex(0);
|
static BX_THREAD_LOCAL uint32_t s_threadIndex(0);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue