[OPENGL32]

- Implement storing thread data into the TEB
CORE-14024
This commit is contained in:
Jérôme Gardou 2017-11-18 13:49:37 +01:00 committed by Jérôme Gardou
parent 1bfbdb6123
commit 6aaf217b10
7 changed files with 437 additions and 357 deletions

View file

@ -48,9 +48,8 @@ DllMain(HINSTANCE hInstance, DWORD Reason, LPVOID Reserved)
#ifdef OPENGL32_USE_TLS
if (!init_tls_data())
return FALSE;
#else
NtCurrentTeb()->glTable = &StubTable.glDispatchTable;
#endif // defined(OPENGL32_USE_TLS)
IntSetCurrentDispatchTable(&StubTable.glDispatchTable);
break;
case DLL_THREAD_DETACH: