mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 15:50:17 +01:00
winsys/gdi: Init state tracker's per-thread data.
This commit is contained in:
parent
4489f9efee
commit
36e985e96e
1 changed files with 12 additions and 1 deletions
|
|
@ -312,9 +312,20 @@ DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
|
|||
{
|
||||
switch (fdwReason) {
|
||||
case DLL_PROCESS_ATTACH:
|
||||
return st_init(&stw_winsys);
|
||||
if (!st_init(&stw_winsys)) {
|
||||
return FALSE;
|
||||
}
|
||||
return st_init_thread();
|
||||
|
||||
case DLL_THREAD_ATTACH:
|
||||
return st_init_thread();
|
||||
|
||||
case DLL_THREAD_DETACH:
|
||||
st_cleanup_thread();
|
||||
break;
|
||||
|
||||
case DLL_PROCESS_DETACH:
|
||||
st_cleanup_thread();
|
||||
st_cleanup();
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue