summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/classes/jogl/javax/media/j3d/JoglPipeline.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/classes/jogl/javax/media/j3d/JoglPipeline.java b/src/classes/jogl/javax/media/j3d/JoglPipeline.java
index 9bb4f7e..d3e3a8d 100644
--- a/src/classes/jogl/javax/media/j3d/JoglPipeline.java
+++ b/src/classes/jogl/javax/media/j3d/JoglPipeline.java
@@ -6350,17 +6350,10 @@ class JoglPipeline extends Pipeline {
// those only enumerate the on-screen visuals, and we need to find one which is
// pbuffer capable
GLCapabilities caps = jcfg.getGLCapabilities();
- //FIXME use the real AWTGraphicsDevice
- //((JoglDrawable)cv.drawable).getGLDrawable().
- if (!GLDrawableFactory.getFactory(getDefaultProfile()).canCreateGLPbuffer(jcfg.getAwtGraphicsDevice())) {
-
- // FIXME: do anything else here? Throw exception?
- return null;
- }
//FIXME use the real AWTGraphicsDevice
- GLPbuffer pbuffer = GLDrawableFactory.getFactory(getDefaultProfile()).createGLPbuffer(jcfg.getAwtGraphicsDevice() ,caps, null,
- width, height, GLContext.getCurrent());
+ GLPbuffer pbuffer = GLDrawableFactory.getFactory(getDefaultProfile()).createGLPbuffer(GLDrawableFactory.getDesktopFactory().getDefaultDevice() ,caps, null,width, height, GLContext.getCurrent());
+
return new JoglDrawable(pbuffer);
}