summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-03-26 19:00:47 +0000
committerKenneth Russel <[email protected]>2006-03-26 19:00:47 +0000
commitf2ee297ae01c0a5997c285d882748a711786ddd1 (patch)
treeafdea57e31fb2eb52faa67884c06ebd8f27f27f0
parent2dbbfdd226bf1a9158936531a299adb5bdd2ad4a (diff)
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
-rw-r--r--src/classes/javax/media/opengl/GLCanvas.java2
1 files changed, 1 insertions, 1 deletions
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);