openal32: Prefer native version.
Because openal contexts are global per-process, applications that use openal will conflict with Wine DLLs that use openal like xaudio2_7 now does. Windows does not ship an openal32, so all applications that use openal will ship their own copy of it. According to Chris Robinson, Windows native openal32 works fine in Wine, so we should just use that to avoid the problem. Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
This commit is contained in:
parent
fc94e5dd5f
commit
7d6c602592
|
@ -99,6 +99,8 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved )
|
||||||
{
|
{
|
||||||
switch(reason)
|
switch(reason)
|
||||||
{
|
{
|
||||||
|
case DLL_WINE_PREATTACH:
|
||||||
|
return FALSE; /* prefer native version */
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
DisableThreadLibraryCalls(hinst);
|
DisableThreadLibraryCalls(hinst);
|
||||||
#define LOADFUNC(x) x = alcGetProcAddress(NULL, #x)
|
#define LOADFUNC(x) x = alcGetProcAddress(NULL, #x)
|
||||||
|
|
Loading…
Reference in New Issue