From 9a4fcc7ea4ec61e4ceed791acced734ac04ea270 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 27 Mar 2013 12:27:57 +0100 Subject: SharedRessourceRunner: Add isDeviceSupported(..) query before spawn off thread, allowing a more gracefull detection of n/a GLX on X11 --- .../classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/jogl/classes/jogamp/opengl/windows/wgl') diff --git a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java index c6bc61a27..9c96f3e3c 100644 --- a/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java +++ b/src/jogl/classes/jogamp/opengl/windows/wgl/WindowsWGLDrawableFactory.java @@ -308,6 +308,11 @@ public class WindowsWGLDrawableFactory extends GLDrawableFactoryImpl { } } + @Override + public boolean isDeviceSupported(String connection) { + return true; + } + @Override public SharedResourceRunner.Resource createSharedResource(String connection) { final WindowsGraphicsDevice sharedDevice = new WindowsGraphicsDevice(connection, AbstractGraphicsDevice.DEFAULT_UNIT); -- cgit v1.2.3