ddraw: Call DDRAW_ChooseDefaultDriver only on PROCESS_ATTACH.

This commit is contained in:
Alexandre Julliard 2006-03-21 15:06:36 +01:00
parent 02fa42dc82
commit 8b3e426821
1 changed files with 3 additions and 3 deletions

View File

@ -677,10 +677,10 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpv)
opengl_initialized = DDRAW_bind_to_opengl();
#endif /* HAVE_OPENGL */
s3tc_initialized = DDRAW_bind_to_s3tc();
}
if (DDRAW_num_drivers > 0)
DDRAW_default_driver = DDRAW_ChooseDefaultDriver();
if (DDRAW_num_drivers > 0)
DDRAW_default_driver = DDRAW_ChooseDefaultDriver();
}
return TRUE;
}