summarylogtreecommitdiffstats
path: root/funguloids-alc_error.patch
diff options
context:
space:
mode:
authorNicolas Iooss2015-05-24 11:14:24 +0800
committerNicolas Iooss2015-05-24 11:14:24 +0800
commit4f1ba6bbd688961f6890d4ad48cf48adafaf3911 (patch)
tree54156bf2c95df8419ee30fcaed680c76c12da31a /funguloids-alc_error.patch
downloadaur-4f1ba6bbd688961f6890d4ad48cf48adafaf3911.tar.gz
Migrate funguloids 1.06.4-7 to AUR4
Diffstat (limited to 'funguloids-alc_error.patch')
-rw-r--r--funguloids-alc_error.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/funguloids-alc_error.patch b/funguloids-alc_error.patch
new file mode 100644
index 000000000000..707d857c3972
--- /dev/null
+++ b/funguloids-alc_error.patch
@@ -0,0 +1,21 @@
+Check ALC errors instead of AL errors.
+=====================================================================
+--- src/openalsoundsystem.cpp.bak 2008-05-04 16:41:32.000000000 -0400
++++ src/openalsoundsystem.cpp 2008-05-04 16:20:52.000000000 -0400
+@@ -266,14 +266,14 @@
+
+ int attributes[] = { 0 };
+ mContext = alcCreateContext(mDevice, attributes);
+- if ( (err = alGetError()) != AL_NO_ERROR) {
++ if ( (err = alcGetError(mDevice)) != ALC_NO_ERROR) {
+ LogManager::getSingleton().logMessage("OpanAL: error creating context: " + lastALError(err) );
+ return 1;
+ }
+ // check_alc_error("Couldn't create audio context: ");
+ alcMakeContextCurrent(mContext);
+ // check_alc_error("Couldn't select audio context: ");
+- if ( (err = alGetError()) != AL_NO_ERROR) {
++ if ( (err = alcGetError(mDevice)) != ALC_NO_ERROR) {
+ LogManager::getSingleton().logMessage("OpanAL: error making context current: " + lastALError(err) );
+ return 2;
+ }