diff --git a/src/display/mask/GeometryMask.js b/src/display/mask/GeometryMask.js index 3281eddee..c9e95001d 100644 --- a/src/display/mask/GeometryMask.js +++ b/src/display/mask/GeometryMask.js @@ -85,7 +85,7 @@ var GeometryMask = new Class({ * @since 3.0.0 * * @param {Phaser.GameObjects.Graphics} graphicsGeometry - The Graphics object which will be used for the Geometry Mask. - * + * * @return {this} This Geometry Mask */ setShape: function (graphicsGeometry) @@ -103,7 +103,7 @@ var GeometryMask = new Class({ * @since 3.17.0 * * @param {boolean} [value=true] - Invert the alpha of this mask? - * + * * @return {this} This Geometry Mask */ setInvertAlpha: function (value) @@ -182,7 +182,7 @@ var GeometryMask = new Class({ } // Write stencil buffer - geometryMask.renderWebGL(renderer, geometryMask, 0, camera); + geometryMask.renderWebGL(renderer, geometryMask, camera); renderer.flush(); @@ -272,7 +272,7 @@ var GeometryMask = new Class({ renderer.currentContext.save(); - geometryMask.renderCanvas(renderer, geometryMask, 0, camera, null, null, true); + geometryMask.renderCanvas(renderer, geometryMask, camera, null, null, true); renderer.currentContext.clip(); }, diff --git a/src/gameobjects/rendertexture/RenderTexture.js b/src/gameobjects/rendertexture/RenderTexture.js index 6ec7218ce..1287dd2a2 100644 --- a/src/gameobjects/rendertexture/RenderTexture.js +++ b/src/gameobjects/rendertexture/RenderTexture.js @@ -1019,7 +1019,7 @@ var RenderTexture = new Class({ gameObject.setPosition(x + this.frame.cutX, y + this.frame.cutY); - gameObject.renderWebGL(this.renderer, gameObject, 0, this.camera, null); + gameObject.renderWebGL(this.renderer, gameObject, this.camera); gameObject.setPosition(prevX, prevY); }, @@ -1052,7 +1052,7 @@ var RenderTexture = new Class({ gameObject.setPosition(x + this.frame.cutX, y + this.frame.cutY); - gameObject.renderCanvas(this.renderer, gameObject, 0, this.camera, null); + gameObject.renderCanvas(this.renderer, gameObject, this.camera, null); gameObject.setPosition(prevX, prevY);