diff options
author | Kenneth Russel <[email protected]> | 2008-12-14 02:00:38 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2008-12-14 02:00:38 +0000 |
commit | e9ac743a4160e880202459dfed289f417988d87b (patch) | |
tree | dfad0de6464cf2369880b77f8c69aa3389809591 /src/classes/com/sun/opengl/impl/egl/EGLDrawable.java | |
parent | 638507b43021bc7635844ba38ea4db4e1ab5ef87 (diff) |
Fixed nested toolkit locking problem with X11PbufferGLXDrawable. With
this fix pbuffers and the GLJPanel are working again on X11 platforms.
Moved lockToolkit, unlockToolkit and isToolkitLocked from
GLDrawableFactory to GLDrawableFactoryImpl. Updated all call sites.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1819 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/egl/EGLDrawable.java')
-rwxr-xr-x | src/classes/com/sun/opengl/impl/egl/EGLDrawable.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java b/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java index 5915e5cd3..cc80a9957 100755 --- a/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java +++ b/src/classes/com/sun/opengl/impl/egl/EGLDrawable.java @@ -161,7 +161,7 @@ public class EGLDrawable extends GLDrawableImpl { } public void swapBuffers() throws GLException { - getFactory().lockToolkit(); + getFactoryImpl().lockToolkit(); try { if (component.getSurfaceHandle() == 0) { if (lockSurface() == NativeWindow.LOCK_SURFACE_NOT_READY) { @@ -173,7 +173,7 @@ public class EGLDrawable extends GLDrawableImpl { } finally { unlockSurface(); - getFactory().unlockToolkit(); + getFactoryImpl().unlockToolkit(); } } |