aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/jogl
diff options
context:
space:
mode:
authorHarvey Harrison <[email protected]>2012-05-03 20:50:33 -0700
committerHarvey Harrison <[email protected]>2012-05-03 20:50:33 -0700
commitd66eb503cad95441c52dd3aa6b941005560b2ab6 (patch)
tree2a3e8c4a0e42bff73efe6e49f8a985a8bd6eba45 /src/classes/jogl
parent41efeba70c5d49545004f278c22590ae4158172a (diff)
j3dcore: brutal hack to get offscreen rendering working
Done by stupidly trying things. Signed-off-by: Harvey Harrison <[email protected]>
Diffstat (limited to 'src/classes/jogl')
-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);
}