diff --git a/src/pixi/renderers/webgl/WebGLRenderer.js b/src/pixi/renderers/webgl/WebGLRenderer.js index cfa3dc5..3d6f0ae 100644 --- a/src/pixi/renderers/webgl/WebGLRenderer.js +++ b/src/pixi/renderers/webgl/WebGLRenderer.js @@ -144,7 +144,7 @@ // -- Does this need to be set every frame? -- // //gl.colorMask(true, true, true, this.transparent); - //gl.viewport(0, 0, this.width, this.height); + gl.viewport(0, 0, this.width, this.height); // make sure we are bound to the main frame buffer gl.bindFramebuffer(gl.FRAMEBUFFER, null); @@ -190,7 +190,7 @@ */ }; -PIXI.WebGLRenderer.prototype.renderDisplayObject = function(displayObject, projection) +PIXI.WebGLRenderer.prototype.renderDisplayObject = function(displayObject, projection, buffer) { // reset the render session data.. this.renderSession.drawCount = 0; @@ -203,7 +203,7 @@ this.spriteBatch.begin(this.renderSession); // start the filter manager - this.filterManager.begin(this.renderSession, null); + this.filterManager.begin(this.renderSession, buffer); // render the scene! displayObject._renderWebGL(this.renderSession); diff --git a/src/pixi/renderers/webgl/WebGLRenderer.js b/src/pixi/renderers/webgl/WebGLRenderer.js index cfa3dc5..3d6f0ae 100644 --- a/src/pixi/renderers/webgl/WebGLRenderer.js +++ b/src/pixi/renderers/webgl/WebGLRenderer.js @@ -144,7 +144,7 @@ // -- Does this need to be set every frame? -- // //gl.colorMask(true, true, true, this.transparent); - //gl.viewport(0, 0, this.width, this.height); + gl.viewport(0, 0, this.width, this.height); // make sure we are bound to the main frame buffer gl.bindFramebuffer(gl.FRAMEBUFFER, null); @@ -190,7 +190,7 @@ */ }; -PIXI.WebGLRenderer.prototype.renderDisplayObject = function(displayObject, projection) +PIXI.WebGLRenderer.prototype.renderDisplayObject = function(displayObject, projection, buffer) { // reset the render session data.. this.renderSession.drawCount = 0; @@ -203,7 +203,7 @@ this.spriteBatch.begin(this.renderSession); // start the filter manager - this.filterManager.begin(this.renderSession, null); + this.filterManager.begin(this.renderSession, buffer); // render the scene! displayObject._renderWebGL(this.renderSession); diff --git a/src/pixi/textures/RenderTexture.js b/src/pixi/textures/RenderTexture.js index 2518446..620d198 100644 --- a/src/pixi/textures/RenderTexture.js +++ b/src/pixi/textures/RenderTexture.js @@ -142,7 +142,7 @@ // - this.renderer.renderDisplayObject(displayObject, this.projection); + this.renderer.renderDisplayObject(displayObject, this.projection, this.textureBuffer.frameBuffer); displayObject.worldTransform = originalWorldTransform; };