updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / funguloids / funguloids-alc_error.patch
blob0d14364a89c2cbb278375cb721bf194790fc1cef
1 Check ALC errors instead of AL errors.
2 =====================================================================
3 --- src/openalsoundsystem.cpp.bak 2008-05-04 16:41:32.000000000 -0400
4 +++ src/openalsoundsystem.cpp 2008-05-04 16:20:52.000000000 -0400
5 @@ -266,14 +266,14 @@
7 int attributes[] = { 0 };
8 mContext = alcCreateContext(mDevice, attributes);
9 - if ( (err = alGetError()) != AL_NO_ERROR) {
10 + if ( (err = alcGetError(mDevice)) != ALC_NO_ERROR) {
11 LogManager::getSingleton().logMessage("OpanAL: error creating context: " + lastALError(err) );
12 return 1;
14 // check_alc_error("Couldn't create audio context: ");
15 alcMakeContextCurrent(mContext);
16 // check_alc_error("Couldn't select audio context: ");
17 - if ( (err = alGetError()) != AL_NO_ERROR) {
18 + if ( (err = alcGetError(mDevice)) != ALC_NO_ERROR) {
19 LogManager::getSingleton().logMessage("OpanAL: error making context current: " + lastALError(err) );
20 return 2;