diff options
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/awt')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/awt/GLJPanel.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java index 5c6be8bc4..c8bfe94d8 100644 --- a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java +++ b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java @@ -966,6 +966,7 @@ public class GLJPanel extends JPanel implements AWTGLAutoDrawable { public void initialize() { // Fall-through path: create an offscreen context instead offscreenDrawable = (GLDrawableImpl) factory.createOffscreenDrawable( + null /* default platform device */, offscreenCaps, chooser, Math.max(1, panelWidth), @@ -1051,7 +1052,8 @@ public class GLJPanel extends JPanel implements AWTGLAutoDrawable { throw new InternalError("Creating pbuffer twice without destroying it (memory leak / correctness bug)"); } try { - pbuffer = factory.createGLPbuffer(offscreenCaps, + pbuffer = factory.createGLPbuffer(null /* default platform device */, + offscreenCaps, null, pbufferWidth, pbufferHeight, |