Merge pull request #5699 from JakubValtar/fix-pgraphicsopengl-setsize

Recreate FBOs when offscreen PGraphicsOpenGL is resized
This commit is contained in:
Ben Fry
2019-01-11 19:42:36 -05:00
committed by GitHub
@@ -6821,6 +6821,9 @@ public class PGraphicsOpenGL extends PGraphics {
} else {
// offscreen surfaces are transparent by default.
background(0x00 << 24 | (backgroundColor & 0xFFFFFF));
// Recreate offscreen FBOs
restartPGL();
}
// Sets the default projection and camera (initializes modelview).