mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Move sequence so the renderer is clean
This commit is contained in:
parent
f42f0ce0d6
commit
a5d6016e64
1 changed files with 3 additions and 7 deletions
|
@ -2224,8 +2224,6 @@ var WebGLRenderer = new Class({
|
|||
|
||||
gl.enable(gl.SCISSOR_TEST);
|
||||
|
||||
this.pipelines.preRender();
|
||||
|
||||
this.currentScissor = this.defaultScissor;
|
||||
|
||||
this.scissorStack.length = 0;
|
||||
|
@ -2242,6 +2240,8 @@ var WebGLRenderer = new Class({
|
|||
|
||||
this.textureFlush = 0;
|
||||
|
||||
this.pipelines.preRender();
|
||||
|
||||
this.pipelines.setMulti();
|
||||
},
|
||||
|
||||
|
@ -2361,9 +2361,7 @@ var WebGLRenderer = new Class({
|
|||
{
|
||||
if (this.contextLost) { return; }
|
||||
|
||||
this.flush();
|
||||
|
||||
// Unbind custom framebuffer here
|
||||
this.pipelines.postRender();
|
||||
|
||||
var state = this.snapshotState;
|
||||
|
||||
|
@ -2374,8 +2372,6 @@ var WebGLRenderer = new Class({
|
|||
state.callback = null;
|
||||
}
|
||||
|
||||
this.pipelines.postRender();
|
||||
|
||||
if (this.textureFlush > 0)
|
||||
{
|
||||
this.startActiveTexture++;
|
||||
|
|
Loading…
Reference in a new issue