move framebuffer blitting after restoring screen fb

This commit is contained in:
codeanticode
2015-09-07 11:14:47 -04:00
parent 440c67ddb7
commit 5f627f54fa

View File

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