From 3c9b7bcec2ae06060726c49e34b1d606f66d31c6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 9 Dec 2019 07:07:36 +0100 Subject: 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(). --- src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/jogl/classes/jogamp/opengl/egl/EGLDrawableFactory.java') 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); } -- cgit v1.2.3