diff options
author | Sven Gothel <[email protected]> | 2019-12-09 07:07:36 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2019-12-09 07:07:36 +0100 |
commit | 3c9b7bcec2ae06060726c49e34b1d606f66d31c6 (patch) | |
tree | 8f5458ab6ca8c96edbcfd035bd55666642df1217 /src/jogl/classes/jogamp | |
parent | 3e92d34de3672d7f5e401ed6181bb55a58bdf4b6 (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.java | 1 |
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); } |