From 571c21df9310d043b08a4a72064617cbe6eee0fa Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 2 Dec 2012 04:14:30 +0100 Subject: SWT GLCanvas/NewtCanvasSWT: Check isVisible() @ validation; NewtCanvasSWT remove just introduced setVisible(false) and adapt to setEDTUtil() changes. ; Enhance Bug 643 unit test: Also test NEWT EDT and pre-visible GLWindow. - SWT GLCanvas/NewtCanvasSWT: Check isVisible() @ validation - NewtCanvasSWT remove just introduced setVisible(false) and adapt to setEDTUtil() changes - Enhance Bug 643 unit test: Also test NEWT EDT and pre-visible GLWindow. --- src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/jogl/classes') diff --git a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java index 38dd71f5e..a080a7045 100644 --- a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java +++ b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java @@ -423,7 +423,7 @@ public class GLCanvas extends Canvas implements GLAutoDrawable { /** assumes drawable == null ! */ protected final boolean validateDrawableAndContext() { - if( GLCanvas.this.isDisposed() ) { + if( isDisposed() || !isVisible() ) { return false; } final Rectangle nClientArea = clientArea; -- cgit v1.2.3