diff options
author | Sven Gothel <[email protected]> | 2011-11-30 13:13:27 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-11-30 13:13:27 +0100 |
commit | ad0ba11b0a1d6cb4a113e467420f2f797f1d26cb (patch) | |
tree | fc263a43ea92791d5cb6e5439fc3c3669d3770de /src/jogl/classes/javax/media/opengl/GLDrawableFactory.java | |
parent | b72ac8efaca45241a44dd631acb20a8c23ea2a7b (diff) |
More Robust GLProfile Initialization ; Add NativeWindowFactory Shutdown
More Robust GLProfile Initialization
- Catch GLException in GLDrawableFactory getWasSharedContextCreated(device) impl.,
which may fail (See comment on Firefox/Chorme EGL deployed library for Windows).
- If getWasSharedContextCreated(devide) fails, set respective factory availability to false,
ie. hasDesktopGLFactory, hasEGLFactory, ..
Add NativeWindowFactory Shutdown
- Currenly a dummy entry, may evolve. X11Util shutdown is issued by respective GLDrawableFactory
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/GLDrawableFactory.java')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/GLDrawableFactory.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLDrawableFactory.java b/src/jogl/classes/javax/media/opengl/GLDrawableFactory.java index dbb91caaa..3bdbf5460 100644 --- a/src/jogl/classes/javax/media/opengl/GLDrawableFactory.java +++ b/src/jogl/classes/javax/media/opengl/GLDrawableFactory.java @@ -199,8 +199,7 @@ public abstract class GLDrawableFactory { private static void shutdownImpl() { synchronized(glDrawableFactories) { for(int i=0; i<glDrawableFactories.size(); i++) { - GLDrawableFactory factory = glDrawableFactories.get(i); - factory.shutdownInstance(); + glDrawableFactories.get(i).shutdownInstance(); } glDrawableFactories.clear(); } |