mirror of
https://github.com/glfw/glfw.git
synced 2026-09-17 22:32:50 +00:00
Replaced __declspec(thread) with TlsAlloc.
Variables created within a DLL with __declspec(thread) may not get a TLS slot on Windows XP, leading to segfaults on use. Moving to TlsAlloc works around this.
This commit is contained in:
+2
-1
@@ -76,7 +76,8 @@ typedef struct _GLFWcontextWGL
|
||||
//------------------------------------------------------------------------
|
||||
typedef struct _GLFWlibraryWGL
|
||||
{
|
||||
int dummy;
|
||||
GLboolean hasTLS;
|
||||
DWORD tls;
|
||||
|
||||
} _GLFWlibraryWGL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user