Commit 8b3e4268 authored by Alexandre Julliard's avatar Alexandre Julliard

ddraw: Call DDRAW_ChooseDefaultDriver only on PROCESS_ATTACH.

parent 02fa42dc
...@@ -677,10 +677,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv) ...@@ -677,10 +677,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
opengl_initialized = DDRAW_bind_to_opengl(); opengl_initialized = DDRAW_bind_to_opengl();
#endif /* HAVE_OPENGL */ #endif /* HAVE_OPENGL */
s3tc_initialized = DDRAW_bind_to_s3tc(); s3tc_initialized = DDRAW_bind_to_s3tc();
}
if (DDRAW_num_drivers > 0) if (DDRAW_num_drivers > 0)
DDRAW_default_driver = DDRAW_ChooseDefaultDriver(); DDRAW_default_driver = DDRAW_ChooseDefaultDriver();
}
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment