Explorar o código

Fix crash when using bloom with the default rendering pipeline

Popov72 %!s(int64=4) %!d(string=hai) anos
pai
achega
568d382043
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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);
     }
 
     /**