From 3ae6f3fdc232529ce28679b6ec4624b7d3377e9b Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 14 May 2012 16:40:36 +0200 Subject: GLContext.destroy() error case: Lock hold > 1 - More explicit error message. --- src/jogl/classes/jogamp/opengl/GLContextImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl/GLContextImpl.java') 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 -- cgit v1.2.3