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:
Camilla Berglund
2013-04-08 03:48:39 +02:00
parent e248fb6056
commit cd2b6eb83c
2 changed files with 18 additions and 21 deletions
+2 -1
View File
@@ -76,7 +76,8 @@ typedef struct _GLFWcontextWGL
//------------------------------------------------------------------------
typedef struct _GLFWlibraryWGL
{
int dummy;
GLboolean hasTLS;
DWORD tls;
} _GLFWlibraryWGL;