Skip to content

Commit f5f20db

Browse files
committed
Don't batch if no pipeline
1 parent dbe5730 commit f5f20db

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/renderer/webgl/PipelineManager.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,10 @@ var PipelineManager = new Class({
581581
{
582582
this.flush();
583583

584-
gameObject.postPipeline.preBatch(gameObject);
584+
if (gameObject.postPipeline)
585+
{
586+
gameObject.postPipeline.preBatch(gameObject);
587+
}
585588
},
586589

587590
/**
@@ -599,7 +602,10 @@ var PipelineManager = new Class({
599602
{
600603
this.flush();
601604

602-
gameObject.postPipeline.postBatch(gameObject);
605+
if (gameObject.postPipeline)
606+
{
607+
gameObject.postPipeline.postBatch(gameObject);
608+
}
603609
},
604610

605611
/**

0 commit comments

Comments
 (0)