From 7da326380ca234d31627c5eaa8e7eacd3bfb8a4d Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Tue, 10 May 2005 17:47:31 +0000 Subject: Fixed race conditions in Mac OS X onscreen context creation that showed up after recent GLJPanel fix to clean up resource leaks. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@267 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java') diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java index 401a657fe..f28a302b1 100644 --- a/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java +++ b/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java @@ -131,6 +131,9 @@ public class MacOSXOnscreenGLContext extends MacOSXGLContext { (MacOSXPbufferGLContext) pbuffersToInstantiate.remove(pbuffersToInstantiate.size() - 1); ctx.createPbuffer(nsView, nsContext); } + } else { + // View might not have been ready + unlockSurface(); } return ret; } catch (RuntimeException e) { -- cgit v1.2.3