Browse Source

quick update for a missing line

David Catuhe 6 years ago
parent
commit
d13827a4a8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/PostProcess/RenderPipeline/babylon.postProcessRenderEffect.ts

+ 1 - 1
src/PostProcess/RenderPipeline/babylon.postProcessRenderEffect.ts

@@ -154,7 +154,7 @@ module BABYLON {
                 const postProcesses = this._postProcesses[this._singleInstance ? 0 : cameraName];
 
                 if (postProcesses) {
-                    this._postProcesses[this._singleInstance ? 0 : cameraName].forEach((postProcess: PostProcess) => {
+                    postProcesses.forEach((postProcess: PostProcess) => {
                         camera.detachPostProcess(postProcess);
                     });
                 }