mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +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);
|
gl.enable(gl.SCISSOR_TEST);
|
||||||
|
|
||||||
this.pipelines.preRender();
|
|
||||||
|
|
||||||
this.currentScissor = this.defaultScissor;
|
this.currentScissor = this.defaultScissor;
|
||||||
|
|
||||||
this.scissorStack.length = 0;
|
this.scissorStack.length = 0;
|
||||||
|
@ -2242,6 +2240,8 @@ var WebGLRenderer = new Class({
|
||||||
|
|
||||||
this.textureFlush = 0;
|
this.textureFlush = 0;
|
||||||
|
|
||||||
|
this.pipelines.preRender();
|
||||||
|
|
||||||
this.pipelines.setMulti();
|
this.pipelines.setMulti();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -2361,9 +2361,7 @@ var WebGLRenderer = new Class({
|
||||||
{
|
{
|
||||||
if (this.contextLost) { return; }
|
if (this.contextLost) { return; }
|
||||||
|
|
||||||
this.flush();
|
this.pipelines.postRender();
|
||||||
|
|
||||||
// Unbind custom framebuffer here
|
|
||||||
|
|
||||||
var state = this.snapshotState;
|
var state = this.snapshotState;
|
||||||
|
|
||||||
|
@ -2374,8 +2372,6 @@ var WebGLRenderer = new Class({
|
||||||
state.callback = null;
|
state.callback = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.pipelines.postRender();
|
|
||||||
|
|
||||||
if (this.textureFlush > 0)
|
if (this.textureFlush > 0)
|
||||||
{
|
{
|
||||||
this.startActiveTexture++;
|
this.startActiveTexture++;
|
||||||
|
|
Loading…
Reference in a new issue