diff --git a/src/renderer/webgl/WebGLRenderer.js b/src/renderer/webgl/WebGLRenderer.js index 9539437a9..ada9b322a 100644 --- a/src/renderer/webgl/WebGLRenderer.js +++ b/src/renderer/webgl/WebGLRenderer.js @@ -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++;