aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2019-12-09 07:07:36 +0100
committerSven Gothel <[email protected]>2019-12-09 07:07:36 +0100
commit3c9b7bcec2ae06060726c49e34b1d606f66d31c6 (patch)
tree8f5458ab6ca8c96edbcfd035bd55666642df1217 /src/jogl/classes/jogamp
parent3e92d34de3672d7f5e401ed6181bb55a58bdf4b6 (diff)
Bug 1416 - Allow EGLDrawableFactory re-creation after shutdown() - be functional
TestShutdownCompleteNEWT revealed that EGLDrawableFactory won't be properly re-created within subsequent GLProfile/GLDrawableFactory initSingleton() after a GLProfile.shutdown() call. Hence after the shutdown() call, subsequent GLProfile have no EGLDrawableFactory available and hence may not have a default device existent in case no desktop-factory is available. Allow EGLDrawableFactory to be re-created after a shutdown().
Diffstat (limited to 'src/jogl/classes/jogamp')
-rw-r--r--src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java b/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java
index 14dc873fc..026776769 100644
--- a/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java
+++ b/src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java
@@ -438,6 +438,7 @@ public class EGLDrawableFactory extends GLDrawableFactoryImpl {
// eglGLDynamicLookupHelper.destroy();
eglGLnDynamicLookupHelper = null;
}
+ eglDynamicLookupHelperInit = false;
EGLGraphicsConfigurationFactory.unregisterFactory();
EGLDisplayUtil.shutdown(DEBUG);
}