mirror of
https://github.com/photonstorm/phaser
synced 2024-12-04 18:40:59 +00:00
Use new fbo stack
This commit is contained in:
parent
02bde43772
commit
ff23ca57cb
1 changed files with 2 additions and 3 deletions
|
@ -779,7 +779,7 @@ var WebGLPipeline = new Class({
|
||||||
|
|
||||||
if (target)
|
if (target)
|
||||||
{
|
{
|
||||||
renderer.setFramebuffer(this.targetFramebuffer);
|
renderer.pushFramebuffer(this.targetFramebuffer);
|
||||||
|
|
||||||
if (this.targetAutoClear)
|
if (this.targetAutoClear)
|
||||||
{
|
{
|
||||||
|
@ -865,8 +865,7 @@ var WebGLPipeline = new Class({
|
||||||
*/
|
*/
|
||||||
postFlush: function (gameObject)
|
postFlush: function (gameObject)
|
||||||
{
|
{
|
||||||
this.renderer.setFramebuffer(null);
|
this.renderer.popFramebuffer();
|
||||||
this.renderer.resetTextures();
|
|
||||||
|
|
||||||
var wasBound = this.renderer.setVertexBuffer(this.vertexBuffer);
|
var wasBound = this.renderer.setVertexBuffer(this.vertexBuffer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue