diff options
author | Harvey Harrison <[email protected]> | 2012-09-17 23:51:07 -0700 |
---|---|---|
committer | Harvey Harrison <[email protected]> | 2012-09-17 23:51:07 -0700 |
commit | 9550911d0c199b9f2b379456f6f066e2c988d614 (patch) | |
tree | 9336685e9ddb7ed44106d8e39443aeba4481fb01 | |
parent | 7bdfa418771189b32ba3ffca182a05c62d332fa0 (diff) |
j3dcore: update for API changes in JOGL2-rc10
Signed-off-by: Harvey Harrison <[email protected]>
-rw-r--r-- | src/classes/share/javax/media/j3d/JoglPipeline.java | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/classes/share/javax/media/j3d/JoglPipeline.java b/src/classes/share/javax/media/j3d/JoglPipeline.java index 17475e4..fc833da 100644 --- a/src/classes/share/javax/media/j3d/JoglPipeline.java +++ b/src/classes/share/javax/media/j3d/JoglPipeline.java @@ -60,6 +60,7 @@ import javax.media.nativewindow.CapabilitiesImmutable; import javax.media.nativewindow.GraphicsConfigurationFactory; import javax.media.nativewindow.NativeWindow; import javax.media.nativewindow.NativeWindowFactory; +import javax.media.nativewindow.VisualIDHolder; import javax.media.opengl.DefaultGLCapabilitiesChooser; import javax.media.opengl.GL; import javax.media.opengl.GL2; @@ -6169,10 +6170,10 @@ class JoglPipeline extends Pipeline { } if (cv.drawable == null) { AWTGraphicsScreen awtGraphicsScreen = new AWTGraphicsScreen(config.getAwtGraphicsDevice()); - GraphicsConfigurationFactory factory = GraphicsConfigurationFactory.getFactory(config.getAwtGraphicsDevice()); + GraphicsConfigurationFactory factory = GraphicsConfigurationFactory.getFactory(config.getAwtGraphicsDevice().getClass(), GLCapabilities.class); AWTGraphicsConfiguration awtGraphicsConfiguration = (AWTGraphicsConfiguration)factory.chooseGraphicsConfiguration(config.getGLCapabilities(), config.getGLCapabilities(), - indexChooser, awtGraphicsScreen); + indexChooser, awtGraphicsScreen, VisualIDHolder.VID_UNDEFINED); NativeWindow nativeWindow = NativeWindowFactory.getNativeWindow(cv, awtGraphicsConfiguration); draw = GLDrawableFactory.getFactory(getDefaultProfile()).createGLDrawable(nativeWindow); cv.drawable = new JoglDrawable(draw); @@ -7864,11 +7865,11 @@ class JoglPipeline extends Pipeline { } AWTGraphicsDevice awtGraphicsDevice = ((JoglGraphicsConfiguration)gconfig).getAwtGraphicsDevice()/*new AWTGraphicsDevice(config.getDevice(), 0)*/; - GraphicsConfigurationFactory factory = GraphicsConfigurationFactory.getFactory(awtGraphicsDevice); + GraphicsConfigurationFactory factory = GraphicsConfigurationFactory.getFactory(awtGraphicsDevice.getClass(), GLCapabilities.class); AbstractGraphicsConfiguration absConfig = factory.chooseGraphicsConfiguration(config.getGLCapabilities(), config.getGLCapabilities(), - indexChooser, new AWTGraphicsScreen(awtGraphicsDevice)); + indexChooser, new AWTGraphicsScreen(awtGraphicsDevice), VisualIDHolder.VID_UNDEFINED); if (absConfig == null) { return null; } @@ -8214,18 +8215,18 @@ class JoglPipeline extends Pipeline { GraphicsDevice device) { //FIXME unit id? AWTGraphicsDevice awtGraphicsDevice = new AWTGraphicsDevice(device, 0); - GraphicsConfigurationFactory factory = GraphicsConfigurationFactory.getFactory(awtGraphicsDevice); + GraphicsConfigurationFactory factory = GraphicsConfigurationFactory.getFactory(awtGraphicsDevice.getClass(), GLCapabilities.class); AWTGraphicsConfiguration awtGraphicsConfiguration = (AWTGraphicsConfiguration) factory.chooseGraphicsConfiguration(capabilities, capabilities, - chooser, new AWTGraphicsScreen(awtGraphicsDevice)); + chooser, new AWTGraphicsScreen(awtGraphicsDevice), VisualIDHolder.VID_UNDEFINED); return awtGraphicsConfiguration; } private static AWTGraphicsConfiguration createAwtGraphicsConfiguration(GLCapabilities capabilities, CapabilitiesChooser chooser, AWTGraphicsDevice awtGraphicsDevice) { - GraphicsConfigurationFactory factory = GraphicsConfigurationFactory.getFactory(awtGraphicsDevice); + GraphicsConfigurationFactory factory = GraphicsConfigurationFactory.getFactory(awtGraphicsDevice.getClass(), GLCapabilities.class); AWTGraphicsConfiguration awtGraphicsConfiguration = (AWTGraphicsConfiguration) factory.chooseGraphicsConfiguration(capabilities, capabilities, - chooser, new AWTGraphicsScreen(awtGraphicsDevice)); + chooser, new AWTGraphicsScreen(awtGraphicsDevice), VisualIDHolder.VID_UNDEFINED); return awtGraphicsConfiguration; } |