diff options
author | Kenneth Russel <[email protected]> | 2005-07-10 23:40:07 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-07-10 23:40:07 +0000 |
commit | 9d28b7f7fffdaeee7353945000546cb73a00157b (patch) | |
tree | 418ebd5c31f8b23cbf7c9979693a10ea25fb3755 /src/net/java | |
parent | 8a4e964a88703bcab4a8888b25ea9e997953180a (diff) |
Fixed Mac OS X port after initial GLContext changes
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@321 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java')
-rw-r--r-- | src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java | 2 | ||||
-rw-r--r-- | src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java index b921116db..5471fcda4 100644 --- a/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java +++ b/src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java @@ -169,7 +169,7 @@ public abstract class MacOSXGLContext extends GLContextImpl boolean created = false; if (nsContext == 0) { if (!create()) { - return false; + return CONTEXT_NOT_CURRENT; } if (DEBUG) { System.err.println("!!! Created GL nsContext for " + getClass().getName()); diff --git a/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java b/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java index f2398aab8..70da97f32 100644 --- a/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java +++ b/src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java @@ -110,6 +110,10 @@ public class MacOSXOnscreenGLContext extends MacOSXGLContext { throw new GLException("Should not call this"); } + public void setRealized() { + realized = true; + } + protected int makeCurrentImpl() throws GLException { try { if (!realized) { |