aboutsummaryrefslogtreecommitdiff
path: root/src/library_openal.js
diff options
context:
space:
mode:
authorToadKing <toadking@toadking.com>2013-08-11 16:14:27 -0400
committerToadKing <toadking@toadking.com>2013-08-11 16:14:27 -0400
commit31c977f6797323673208b7c4186a0e69dee4eca6 (patch)
tree4b0d40435b8db8e7e39640e96e48825361b34626 /src/library_openal.js
parent5bb74d2c5ed57a7b52e1a3d01404edfb7a9945ea (diff)
fix bug in alcDestroyContext
Diffstat (limited to 'src/library_openal.js')
-rw-r--r--src/library_openal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library_openal.js b/src/library_openal.js
index c55415b8..266772b2 100644
--- a/src/library_openal.js
+++ b/src/library_openal.js
@@ -41,7 +41,7 @@ var LibraryOpenAL = {
alcDestroyContext: function(context) {
// Stop playback, etc
- clearInterval(context.interval);
+ clearInterval(AL.contexts[context - 1].interval);
},
alcCloseDevice: function(device) {