confirmed that the new JOGL release fixes #124, removes workaround

This commit is contained in:
Ben Fry
2021-01-17 19:39:30 -05:00
parent 36263a04bc
commit fac8a8e556
2 changed files with 4 additions and 15 deletions
+1 -13
View File
@@ -114,9 +114,6 @@ public class PSurfaceJOGL implements PSurface {
protected boolean external = false;
// Workaround for https://github.com/processing/processing4/issues/124
static private boolean issue124 = PApplet.platform == PConstants.MACOS;
public PSurfaceJOGL(PGraphics graphics) {
this.graphics = graphics;
@@ -411,11 +408,7 @@ public class PSurfaceJOGL implements PSurface {
window.setSurfaceScale(new float[] { surfaceScale, surfaceScale });
window.setSize(sketchWidth * windowScaleFactor, sketchHeight * windowScaleFactor);
if (issue124) {
window.setResizable(true);
} else {
window.setResizable(false);
}
window.setResizable(false);
setSize(sketchWidth, sketchHeight);
if (fullScreen) {
PApplet.hideMenuBar();
@@ -956,11 +949,6 @@ public class PSurfaceJOGL implements PSurface {
pgl.endRender(sketch.sketchWindowColor());
}
PGraphicsOpenGL.completeFinishedPixelTransfers();
if (issue124) {
setResizable(false);
issue124 = false;
}
}
if (sketch.exitCalled()) {