summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-05-14 16:40:36 +0200
committerSven Gothel <[email protected]>2012-05-14 16:40:36 +0200
commit3ae6f3fdc232529ce28679b6ec4624b7d3377e9b (patch)
treebd9d782dcf13205044b56a62eabfc79ec2f8df3a /src/jogl/classes/jogamp
parentc066dc997646643a98c35b7c70183930284544d1 (diff)
GLContext.destroy() error case: Lock hold > 1 - More explicit error message.
Diffstat (limited to 'src/jogl/classes/jogamp')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLContextImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLContextImpl.java b/src/jogl/classes/jogamp/opengl/GLContextImpl.java
index 996042ffd..51201b3a9 100644
--- a/src/jogl/classes/jogamp/opengl/GLContextImpl.java
+++ b/src/jogl/classes/jogamp/opengl/GLContextImpl.java
@@ -265,8 +265,8 @@ public abstract class GLContextImpl extends GLContext {
// FIXME: This is actually impossible now, since we acquired the surface lock already,
// which is a prerequisite to acquire the context lock.
lock.lock(); // holdCount++ -> 1 or 2
- if(lock.getHoldCount() > 2) {
- throw new GLException("XXX: "+lock);
+ if ( lock.getHoldCount() > 2 ) {
+ throw new GLException(getThreadName() + ": Lock was hold more than once - makeCurrent/release imbalance: "+lock);
}
try {
// release current context