Use new fbo stack

This commit is contained in:
Richard Davey 2020-11-06 10:19:34 +00:00
parent 02bde43772
commit ff23ca57cb

View file

@ -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);