Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions src/javax/media/j3d/JoglPipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -6540,21 +6540,20 @@ void createQueryContext(Canvas3D cv, Drawable drawable,
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 =
(AWTGraphicsConfiguration)Canvas3D.graphicsConfigTable.get(cv.graphicsConfiguration).getPrivateData();

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);
Expand Down