mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Merge pull request #5699 from JakubValtar/fix-pgraphicsopengl-setsize
Recreate FBOs when offscreen PGraphicsOpenGL is resized
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user