Skip to content

Commit cfce806

Browse files
committed
Call the new camera methods
1 parent 985b614 commit cfce806

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/renderer/webgl/WebGLRenderer.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,6 +1610,8 @@ var WebGLRenderer = new Class({
16101610
*
16111611
* @method Phaser.Renderer.WebGL.WebGLRenderer#popFramebuffer
16121612
* @since 3.50.0
1613+
*
1614+
* @return {WebGLFramebuffer} The Framebuffer that was set, or `null` if there aren't any more in the stack.
16131615
*/
16141616
popFramebuffer: function ()
16151617
{
@@ -1627,6 +1629,8 @@ var WebGLRenderer = new Class({
16271629
}
16281630

16291631
this.setFramebuffer(framebuffer, false, true);
1632+
1633+
return framebuffer;
16301634
},
16311635

16321636
/**
@@ -2125,7 +2129,7 @@ var WebGLRenderer = new Class({
21252129

21262130
var color = camera.backgroundColor;
21272131

2128-
this.pipelines.preBatch(camera);
2132+
this.pipelines.preBatchCamera(camera);
21292133

21302134
this.pushScissor(cx, cy, cw, ch);
21312135

@@ -2214,7 +2218,7 @@ var WebGLRenderer = new Class({
22142218
{
22152219
camera.emit(CameraEvents.POST_RENDER, camera);
22162220

2217-
this.pipelines.postBatch(camera);
2221+
this.pipelines.postBatchCamera(camera);
22182222

22192223
this.resetTextures();
22202224
}

0 commit comments

Comments
 (0)