[OPENGL32]

- Do not crash if thread data was not allocated

svn path=/trunk/; revision=65143
This commit is contained in:
Jérôme Gardou
2014-10-31 11:35:32 +00:00
parent cfb13ee214
commit da308db0af
+1 -1
View File
@@ -137,7 +137,7 @@ HGLRC
IntGetCurrentRC(void)
{
struct Opengl32_ThreadData* data = TlsGetValue(OglTlsIndex);
return data->hglrc;
return data ? data->hglrc : NULL;
}
static inline