From f2ee297ae01c0a5997c285d882748a711786ddd1 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 26 Mar 2006 19:00:47 +0000 Subject: Fixed potential problem in implementation of GLCanvas.removeNotify() now that we may be leaving the context current on a thread git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@686 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/classes/javax/media/opengl/GLCanvas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/classes/javax/media/opengl/GLCanvas.java b/src/classes/javax/media/opengl/GLCanvas.java index d555a1df0..979c466c2 100644 --- a/src/classes/javax/media/opengl/GLCanvas.java +++ b/src/classes/javax/media/opengl/GLCanvas.java @@ -171,7 +171,7 @@ public class GLCanvas extends Canvas implements GLAutoDrawable { !Threading.isOpenGLThread()) { Threading.invokeOnOpenGLThread(destroyAction); } else { - context.destroy(); + destroyAction.run(); } } finally { drawable.setRealized(false); -- cgit v1.2.3