mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
move framebuffer blitting after restoring screen fb
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user