[OPENGL32]
[reactos.git] / dll / opengl / opengl32 / dllmain.c
index dae16d2..6639d0d 100644 (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: