diff options
author | Sven Gothel <[email protected]> | 2011-09-27 11:59:06 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-27 11:59:06 +0200 |
commit | df85f0dfafc09e147f9d422adf5ee8eabf67977b (patch) | |
tree | 2cfa489bc37a8195e0742d8ce48d0d7b2ba468fb /src/jogl/classes/jogamp/opengl | |
parent | e5ab975727134d8249277f4df707b2b14a7788f3 (diff) |
Adapt to GlueGen's Lock ChangeSet: e4baba27507ce78e64a150ec6f69fb96f5721a34 ; Use generics
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r-- | src/jogl/classes/jogamp/opengl/GLPbufferImpl.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLPbufferImpl.java b/src/jogl/classes/jogamp/opengl/GLPbufferImpl.java index 1d52bedbb..d667fa53a 100644 --- a/src/jogl/classes/jogamp/opengl/GLPbufferImpl.java +++ b/src/jogl/classes/jogamp/opengl/GLPbufferImpl.java @@ -40,6 +40,7 @@ package jogamp.opengl; +import com.jogamp.common.util.locks.LockFactory; import com.jogamp.common.util.locks.RecursiveLock; import javax.media.nativewindow.NativeSurface; import javax.media.opengl.GL; @@ -255,7 +256,7 @@ public class GLPbufferImpl implements GLPbuffer { return pbufferDrawable.getGLProfile(); } - private RecursiveLock recurLock = new RecursiveLock(); + private RecursiveLock recurLock = LockFactory.createRecursiveLock(); public int lockSurface() throws GLException { recurLock.lock(); @@ -270,10 +271,6 @@ public class GLPbufferImpl implements GLPbuffer { return recurLock.isLocked(); } - public Throwable getLockedStack() { - return recurLock.getLockedStack(); - } - public int getFloatingPointMode() { if (floatMode == 0) { throw new GLException("Pbuffer not initialized, or floating-point support not requested"); |