diff options
author | phil <[email protected]> | 2017-05-03 10:52:18 +1200 |
---|---|---|
committer | phil <[email protected]> | 2017-05-03 10:52:18 +1200 |
commit | b682efa3d0936f68105fc017f7d0ae6dc96fd073 (patch) | |
tree | 1d1976b1fe12f4963e3920d088c28a389a58bf2b /src | |
parent | 44f4f9ef16a5cd66deba95239a6f2d59834bc8f9 (diff) |
checkAppContext added to getBestConfiguration
see here for more details
http://forum.jogamp.org/Java3D-1-6-Web-Start-from-Mac-OS-X-to-Multi-OS-td4037924.html
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java | 4 | ||||
-rw-r--r-- | src/main/java/org/jogamp/java3d/JoglPipeline.java | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java index d27f276..934e9b8 100644 --- a/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java +++ b/src/main/java/org/jogamp/java3d/Jogl2es2Pipeline.java @@ -9388,6 +9388,10 @@ class Jogl2es2Pipeline extends Jogl2es2DEPPipeline { if (VERBOSE) System.err.println("JoglPipeline.getBestConfiguration()"); + + //PJ this bug turns up in web start from 7u25 onwards, this fix should have been called from here from the beginning + // as getBestConfiguration calls new Component eventually where the bug surfaces + checkAppContext(); // Create a GLCapabilities based on the GraphicsConfigTemplate3D final GLCapabilities caps = new GLCapabilities(profile); diff --git a/src/main/java/org/jogamp/java3d/JoglPipeline.java b/src/main/java/org/jogamp/java3d/JoglPipeline.java index 1a7543e..a7a05c7 100644 --- a/src/main/java/org/jogamp/java3d/JoglPipeline.java +++ b/src/main/java/org/jogamp/java3d/JoglPipeline.java @@ -8350,6 +8350,10 @@ static boolean hasFBObjectSizeChanged(JoglDrawable jdraw, int width, int height) GraphicsConfiguration[] gc) { if (VERBOSE) System.err.println("JoglPipeline.getBestConfiguration()"); + //PJ this bug turns up in web start from 7u25 onwards, this fix should have been called from here from the beginning + // as getBestConfiguration calls new Component eventually where the bug surfaces + checkAppContext(); + // Create a GLCapabilities based on the GraphicsConfigTemplate3D final GLCapabilities caps = new GLCapabilities(profile); |