Skip to content

Commit 8b75adc

Browse files
committed
swapBuffers() call in PGraphicsOpenGL.dispose() is not needed.
1 parent 2ce18a2 commit 8b75adc

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

core/src/processing/opengl/PGraphicsOpenGL.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -604,16 +604,6 @@ public void setSize(int iwidth, int iheight) {
604604
public void dispose() { // PGraphics
605605
super.dispose();
606606

607-
if (primaryGraphics) {
608-
// Swap buffers the end to make sure that no
609-
// garbage is shown on the screen, this particularly
610-
// affects non-interactive sketches on windows that
611-
// render only 1 frame, so no enough rendering
612-
// iterations have been conducted so far to properly
613-
// initialize all the buffers.
614-
pgl.swapBuffers();
615-
}
616-
617607
if (asyncPixelReader != null) {
618608
asyncPixelReader.dispose();
619609
asyncPixelReader = null;

0 commit comments

Comments
 (0)