浏览代码

Fix crash when using bloom with the default rendering pipeline

Popov72 4 年之前
父节点
当前提交
568d382043
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Materials/effect.ts

+ 2 - 2
src/Materials/effect.ts

@@ -853,7 +853,7 @@ export class Effect implements IDisposable {
      * @param postProcess Post process to get the input texture from.
      */
     public setTextureFromPostProcess(channel: string, postProcess: Nullable<PostProcess>): void {
-        this._engine.setTextureFromPostProcess(this._samplers[channel], postProcess, name);
+        this._engine.setTextureFromPostProcess(this._samplers[channel], postProcess, channel);
     }
 
     /**
@@ -863,7 +863,7 @@ export class Effect implements IDisposable {
      * @param postProcess Post process to get the output texture from.
      */
     public setTextureFromPostProcessOutput(channel: string, postProcess: Nullable<PostProcess>): void {
-        this._engine.setTextureFromPostProcessOutput(this._samplers[channel], postProcess, name);
+        this._engine.setTextureFromPostProcessOutput(this._samplers[channel], postProcess, channel);
     }
 
     /**