summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-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