AWTGLCanvas: Release the lock before calling exceptionOccurred

This commit is contained in:
Elias Naur 2007-01-03 09:16:13 +00:00
parent 1005813acc
commit 1bc9ac0aad
1 changed files with 4 additions and 1 deletions

View File

@ -285,6 +285,7 @@ public class AWTGLCanvas extends Canvas implements Drawable, ComponentListener,
* be overridden to do GL operations.
*/
public final void paint(Graphics g) {
LWJGLException exception = null;
synchronized (SYNC_LOCK) {
if (!isDisplayable())
return;
@ -324,9 +325,11 @@ public class AWTGLCanvas extends Canvas implements Drawable, ComponentListener,
peer_info.unlock();
}
} catch (LWJGLException e) {
exceptionOccurred(e);
exception = e;
}
}
if (exception != null)
exceptionOccurred(exception);
}
/**