Skip to content

Commit ff23ca5

Browse files
committed
Use new fbo stack
1 parent 02bde43 commit ff23ca5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/renderer/webgl/WebGLPipeline.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ var WebGLPipeline = new Class({
779779

780780
if (target)
781781
{
782-
renderer.setFramebuffer(this.targetFramebuffer);
782+
renderer.pushFramebuffer(this.targetFramebuffer);
783783

784784
if (this.targetAutoClear)
785785
{
@@ -865,8 +865,7 @@ var WebGLPipeline = new Class({
865865
*/
866866
postFlush: function (gameObject)
867867
{
868-
this.renderer.setFramebuffer(null);
869-
this.renderer.resetTextures();
868+
this.renderer.popFramebuffer();
870869

871870
var wasBound = this.renderer.setVertexBuffer(this.vertexBuffer);
872871

0 commit comments

Comments
 (0)