mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Merge pull request #532 from Ragora/bugfix-openal-loading
Linux BugFix: OpenAL Loading
This commit is contained in:
commit
aeb3626256
1 changed files with 2 additions and 2 deletions
|
|
@ -40,9 +40,9 @@ ALboolean LoadOAL10Library(char *szOALFullPathName, LPOPENALFNTABLE lpOALFnTable
|
||||||
return AL_FALSE;
|
return AL_FALSE;
|
||||||
|
|
||||||
if (szOALFullPathName)
|
if (szOALFullPathName)
|
||||||
openal_library = dlopen(szOALFullPathName, RTLD_LAZY);
|
openal_library = dlopen(szOALFullPathName, RTLD_NOW);
|
||||||
else
|
else
|
||||||
openal_library = dlopen("libopenal.so", RTLD_LAZY);
|
openal_library = dlopen("libopenal.so.1", RTLD_NOW);
|
||||||
|
|
||||||
if (openal_library == NULL) {
|
if (openal_library == NULL) {
|
||||||
Con::errorf("Failed to load OpenAL shared library. Sound will not be available");
|
Con::errorf("Failed to load OpenAL shared library. Sound will not be available");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue