From 5f627f54fa034caa577929887acd49b664490cbc Mon Sep 17 00:00:00 2001 From: codeanticode Date: Mon, 7 Sep 2015 11:14:47 -0400 Subject: [PATCH] move framebuffer blitting after restoring screen fb --- core/src/processing/opengl/PGL.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/processing/opengl/PGL.java b/core/src/processing/opengl/PGL.java index ca4fee8f3..51cc65a78 100644 --- a/core/src/processing/opengl/PGL.java +++ b/core/src/processing/opengl/PGL.java @@ -894,6 +894,8 @@ public abstract class PGL { clearColor(r, g, b, a); clear(DEPTH_BUFFER_BIT | STENCIL_BUFFER_BIT | COLOR_BUFFER_BIT); + bindFramebufferImpl(FRAMEBUFFER, 0); + if (0 < pg.parent.frameCount) { // Copy the contents of the front and back screen buffers to the textures // of the FBO, so they are properly initialized. @@ -914,8 +916,6 @@ public abstract class PGL { COLOR_BUFFER_BIT, NEAREST); } - bindFramebufferImpl(FRAMEBUFFER, 0); - fboLayerCreated = true; }