Skip to content

Commit 8d4a394

Browse files
committed
move framebuffer blitting after restoring screen fb
1 parent 61a41b0 commit 8d4a394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/processing/opengl/PGL.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,8 @@ private void createFBOLayer() {
894894
clearColor(r, g, b, a);
895895
clear(DEPTH_BUFFER_BIT | STENCIL_BUFFER_BIT | COLOR_BUFFER_BIT);
896896

897+
bindFramebufferImpl(FRAMEBUFFER, 0);
898+
897899
if (0 < pg.parent.frameCount) {
898900
// Copy the contents of the front and back screen buffers to the textures
899901
// of the FBO, so they are properly initialized.
@@ -914,8 +916,6 @@ private void createFBOLayer() {
914916
COLOR_BUFFER_BIT, NEAREST);
915917
}
916918

917-
bindFramebufferImpl(FRAMEBUFFER, 0);
918-
919919
fboLayerCreated = true;
920920
}
921921

0 commit comments

Comments
 (0)