aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-04-23 02:01:03 +0200
committerMichael Bien <[email protected]>2010-04-23 02:01:03 +0200
commit56679ab5373dc47286f741f07aeab4ec1f39c43b (patch)
tree63b71472145bae66066c3b7fa57f069f9aac3c85
parentb7bd092831a1ad7a660386c4c291cb363cd8ebb0 (diff)
parent85d4923c52f8d91de37e24f67c1ce152af30eb2e (diff)
Merge branch 'master' of github.com:mbien/jogl
-rwxr-xr-xsrc/newt/classes/com/jogamp/newt/macosx/MacWindow.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/newt/classes/com/jogamp/newt/macosx/MacWindow.java b/src/newt/classes/com/jogamp/newt/macosx/MacWindow.java
index 276843709..52d6fb0c7 100755
--- a/src/newt/classes/com/jogamp/newt/macosx/MacWindow.java
+++ b/src/newt/classes/com/jogamp/newt/macosx/MacWindow.java
@@ -216,7 +216,12 @@ public class MacWindow extends Window {
public synchronized int lockSurface() throws NativeWindowException {
nsViewLock.lock();
- return super.lockSurface();
+ try {
+ return super.lockSurface();
+ } catch (RuntimeException re) {
+ nsViewLock.unlock();
+ throw re;
+ }
}
public void unlockSurface() {