diff options
author | Philip Jordan <[email protected]> | 2019-09-15 12:42:47 +1200 |
---|---|---|
committer | GitHub <[email protected]> | 2019-09-15 12:42:47 +1200 |
commit | 76984ad7d4d068e070060369d83c0c0f3e91a61d (patch) | |
tree | cd99f26661675df05bfb103d5d0a3283ab714e66 | |
parent | 54d37207423e46ea80975651910478baa8dd8421 (diff) | |
parent | 7144715d20a61ad92e51acf6d3a782bef009ce2c (diff) |
Merge pull request #2 from etsinko/fix-to-multiscreen-query1.6-master
Fixed an error that happened in multi-screen environments
-rw-r--r-- | src/javax/media/j3d/JoglPipeline.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/javax/media/j3d/JoglPipeline.java b/src/javax/media/j3d/JoglPipeline.java index c45fd61..430fd3e 100644 --- a/src/javax/media/j3d/JoglPipeline.java +++ b/src/javax/media/j3d/JoglPipeline.java @@ -6540,14 +6540,6 @@ class JoglPipeline extends Pipeline { glDrawable.setRealized(false); } else { - - // TODO can't find an implementation which avoids the use of QueryCanvas - // JOGL requires a visible Frame for an onscreen context - - Frame f = new Frame(); - f.setUndecorated(true); - f.setLayout(new BorderLayout()); - ContextQuerier querier = new ContextQuerier(cv); AWTGraphicsConfiguration awtConfig = @@ -6555,6 +6547,13 @@ class JoglPipeline extends Pipeline { QueryCanvas canvas = new QueryCanvas(awtConfig, querier); + // TODO can't find an implementation which avoids the use of QueryCanvas + // JOGL requires a visible Frame for an onscreen context + + Frame f = new Frame(canvas.getGraphicsConfiguration()); + f.setUndecorated(true); + f.setLayout(new BorderLayout()); + f.add(canvas, BorderLayout.CENTER); f.setSize(MIN_FRAME_SIZE, MIN_FRAME_SIZE); f.setVisible(true); |