Skip to content

Commit 2c88b89

Browse files
committed
Auto-boot and set isPostFX
1 parent 599213d commit 2c88b89

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

src/renderer/webgl/pipelines/PostFXPipeline.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ var PostFXPipeline = new Class({
7474

7575
WebGLPipeline.call(this, config);
7676

77+
this.isPostFX = true;
78+
7779
/**
7880
* A Color Matrix instance belonging to this pipeline.
7981
*
@@ -148,6 +150,13 @@ var PostFXPipeline = new Class({
148150
* @since 3.50.0
149151
*/
150152
this.halfFrame2;
153+
154+
if (this.renderer.isBooted)
155+
{
156+
this.manager = this.renderer.pipelines;
157+
158+
this.boot();
159+
}
151160
},
152161

153162
boot: function ()
@@ -339,7 +348,7 @@ var PostFXPipeline = new Class({
339348

340349
if (!target)
341350
{
342-
renderer.resetTextures();
351+
gl.bindTexture(gl.TEXTURE_2D, null);
343352
}
344353
else
345354
{

0 commit comments

Comments
 (0)