From 3bc1ef8344ad44969ef436a0b98b0cde490a78fa Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 23 Nov 2011 08:35:24 +0100 Subject: GraphicsConfigurationFactory: Kick off 'registerFactory' via static method instead of constructor for clarity. - prepare for 'jogamp.nativewindow.x11.awt.X11AWTGraphicsConfigurationFactory' --- src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java') diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java index 63b2cff35..2147287ba 100644 --- a/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java +++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11GLXDrawableFactory.java @@ -87,11 +87,11 @@ public class X11GLXDrawableFactory extends GLDrawableFactoryImpl { super(); // Register our GraphicsConfigurationFactory implementations // The act of constructing them causes them to be registered - new X11GLXGraphicsConfigurationFactory(); + X11GLXGraphicsConfigurationFactory.registerFactory(); if(GLProfile.isAWTAvailable()) { try { - ReflectionUtil.createInstance("jogamp.opengl.x11.glx.awt.X11AWTGLXGraphicsConfigurationFactory", - null, getClass().getClassLoader()); + ReflectionUtil.callStaticMethod("jogamp.opengl.x11.glx.awt.X11AWTGLXGraphicsConfigurationFactory", + "registerFactory", null, null, getClass().getClassLoader()); } catch (JogampRuntimeException jre) { /* n/a .. */ } } -- cgit v1.2.3