aboutsummaryrefslogtreecommitdiffstats
path: root/src/test-native/bug1398/Bug1398macOSContextOpsOnMainThread.java
diff options
context:
space:
mode:
authorSven Gothel <sgothel@jausoft.com>2020-02-21 15:03:42 +0100
committerSven Gothel <sgothel@jausoft.com>2020-02-21 15:03:42 +0100
commitf4f92cdc0eb89c62070a865601527097e6d5cc72 (patch)
treeed22c616191ca569fbcf31b3c8418fb225522b13 /src/test-native/bug1398/Bug1398macOSContextOpsOnMainThread.java
parent4fad4869d4a929739c830f6ce3ac171d8dd5427a (diff)
Bug 1398: Fixing native test allowing its execution using JOGL 2.3.2 and latest tip using XCode 11
Changes to test - Using own 'NSApplicationMain' entry to avoid the 'missing Info.plist' message! - Configurable CLASSPATH and LIBPATH at compile time. Note that the java.library.path is now hardcoded as well. - Don't close stderr in test, just fflush - Don't close the JVM after launch via 'die(env)', let it run. - Java: Add GLEventListener RedSquareES2 to see something in action @ 30fps - Java: GLCanvase visible bounds
Diffstat (limited to 'src/test-native/bug1398/Bug1398macOSContextOpsOnMainThread.java')
-rw-r--r--src/test-native/bug1398/Bug1398macOSContextOpsOnMainThread.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/test-native/bug1398/Bug1398macOSContextOpsOnMainThread.java b/src/test-native/bug1398/Bug1398macOSContextOpsOnMainThread.java
index 82578acbb..65b3d3f59 100644
--- a/src/test-native/bug1398/Bug1398macOSContextOpsOnMainThread.java
+++ b/src/test-native/bug1398/Bug1398macOSContextOpsOnMainThread.java
@@ -43,7 +43,9 @@ public class Bug1398macOSContextOpsOnMainThread extends JFrame implements GLEven
System.out.println("w:" + dm.getWidth() + " h:" + dm.getHeight() + " rr:" + dm.getRefreshRate() + " bits:" + dm.getBitDepth() + " dim.w:" + dim.width + " dim.h:" + dim.height);
GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GL2));
canvas = new GLCanvas(caps);
- canvas.setBounds(0, 0, 1, 1);
+ canvas.addGLEventListener(new RedSquareES2());
+ // canvas.setBounds(0, 0, 1, 1);
+ canvas.setBounds(0, 0, 800, 600);
JPanel panel = new JPanel();
panel.setLayout(null);
@@ -69,7 +71,7 @@ public class Bug1398macOSContextOpsOnMainThread extends JFrame implements GLEven
setLocation(x, y);
setVisible(true);
- final FPSAnimator animator = new FPSAnimator(canvas, 5, true);
+ final FPSAnimator animator = new FPSAnimator(canvas, 30, true);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
// Run this on another thread than the AWT event queue to