summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-06-28 21:46:10 +0200
committerSven Gothel <[email protected]>2012-06-28 21:46:10 +0200
commit4f27bcecf7484dc041551f52a5c49e2884cb3867 (patch)
tree5fd9341f357ca56fdee2261998b7531b0781e3e8 /src/jogl/classes/javax/media/opengl
parent3334a924309a9361a448d69bc707d4cce416b430 (diff)
AWT/SWT GLCanvas: Remove volatile of context instance, use drawable instance's volatile 'feature'
Diffstat (limited to 'src/jogl/classes/javax/media/opengl')
-rw-r--r--src/jogl/classes/javax/media/opengl/awt/GLCanvas.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
index bdfa11959..71026a247 100644
--- a/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
+++ b/src/jogl/classes/javax/media/opengl/awt/GLCanvas.java
@@ -156,7 +156,7 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable, WindowClosing
private final GLDrawableHelper drawableHelper = new GLDrawableHelper();
private AWTGraphicsConfiguration awtConfig;
private volatile GLDrawable drawable; // volatile avoids locking all accessors. FIXME still need to sync destroy/display
- private volatile GLContextImpl context; // volatile avoids locking all accessors. FIXME still need to sync destroy/display
+ private GLContextImpl context;
private boolean sendReshape = false;
// copy of the cstr args, mainly for recreation
@@ -436,7 +436,7 @@ public class GLCanvas extends Canvas implements AWTGLAutoDrawable, WindowClosing
Thread.dumpStack();
}
- if(null!=context) {
+ if(null!=drawable && null!=context) { // drawable is volatile!
boolean animatorPaused = false;
if(null!=animator) {
// can't remove us from animator for recreational addNotify()