Skip to content

Commit b019c6f

Browse files
committed
Added onDraw
1 parent 53180cc commit b019c6f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/renderer/webgl/WebGLPipeline.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -881,23 +881,20 @@ var WebGLPipeline = new Class({
881881

882882
if (target)
883883
{
884-
this.draw(target);
885-
886-
// target.draw();
887-
888-
// this.flush(true);
884+
this.onDraw(target);
889885
}
890886

891887
this.onPostFlush(gameObject);
892888

893889
return this;
894890
},
895891

896-
draw: function (renderTarget)
892+
onDraw: function (renderTarget)
897893
{
898894
// Post Pipelines can override this as needed
899895
this.manager.copyFrame(renderTarget);
900896

897+
901898
},
902899

903900
/**

0 commit comments

Comments
 (0)