Browse Source

If reverb was enabled then the effect channel association
needs to be cleared, regardless of whether there was a
filter or not.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7482 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

PSp..om 14 years ago
parent
commit
9489d43098
1 changed files with 1 additions and 1 deletions
  1. 1 1
      engine/src/lwjgl-oal/com/jme3/audio/lwjgl/LwjglAudioRenderer.java

+ 1 - 1
engine/src/lwjgl-oal/com/jme3/audio/lwjgl/LwjglAudioRenderer.java

@@ -692,7 +692,7 @@ public class LwjglAudioRenderer implements AudioRenderer, Runnable {
             }
             if (src.isPositional()){
                 AudioNode pas = (AudioNode) src;
-                if (pas.getReverbFilter() != null){
+                if (pas.isReverbEnabled()) {
                     AL11.alSource3i(sourceId, EFX10.AL_AUXILIARY_SEND_FILTER, 0, 0, EFX10.AL_FILTER_NULL);
                 }
             }