diff options
Diffstat (limited to 'src/test-native/bug1398/Bug1398macOSContextOpsOnMainThread.java')
-rw-r--r-- | src/test-native/bug1398/Bug1398macOSContextOpsOnMainThread.java | 6 |
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 |