From 4191e406178cdd900030a1ec3919476aab527734 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 8 Sep 2011 05:24:57 +0200 Subject: JOGL: Make GLProfile shutdown()/initSingleton() functional, ie. proper recreation of all resources - Release all GLDrawableFactory instances at shutdown, [re]create them at initialization - Release GLContext resources (availability map) as well --- src/jogl/classes/javax/media/opengl/GLContext.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/jogl/classes/javax/media/opengl/GLContext.java') diff --git a/src/jogl/classes/javax/media/opengl/GLContext.java b/src/jogl/classes/javax/media/opengl/GLContext.java index 20930bd42..0727dad1b 100644 --- a/src/jogl/classes/javax/media/opengl/GLContext.java +++ b/src/jogl/classes/javax/media/opengl/GLContext.java @@ -756,6 +756,11 @@ public abstract class GLContext { } } } + + protected static void shutdown() { + deviceVersionAvailable.clear(); + deviceVersionsAvailableSet.clear(); + } /** * Called by {@link jogamp.opengl.GLContextImpl#createContextARBMapVersionsAvailable} not intended to be used by -- cgit v1.2.3