aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-01-11 08:14:49 +0100
committerSven Gothel <[email protected]>2013-01-11 08:14:49 +0100
commitbdc2e57ffc91d88e187ded8c42335710448f50f0 (patch)
tree9c3cc6ac695fee30b8e0d074597781e3520f0381 /src/newt/classes
parent224fab1b2c71464826594740022fdcbe278867dc (diff)
Minor: GLWindow fix size validation; GLContextImpl: Remove hold ctx lock count constraints at destroy.
Diffstat (limited to 'src/newt/classes')
-rw-r--r--src/newt/classes/com/jogamp/newt/opengl/GLWindow.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
index a89ccaedb..73a4134bd 100644
--- a/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
+++ b/src/newt/classes/com/jogamp/newt/opengl/GLWindow.java
@@ -548,7 +548,7 @@ public class GLWindow extends GLAutoDrawableBase implements GLAutoDrawable, Wind
} finally {
lock.unlock();
}
- if( !done && 0<getWidth()*getHeight() ) {
+ if( !done && ( 0 < getWidth() && 0 < getHeight() ) ) {
// retry drawable and context creation, will itself issue resize -> display
setVisible(true);
}