ddraw: Call DDRAW_ChooseDefaultDriver only on PROCESS_ATTACH.
This commit is contained in:
parent
02fa42dc82
commit
8b3e426821
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue