From 9d28b7f7fffdaeee7353945000546cb73a00157b Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 10 Jul 2005 23:40:07 +0000 Subject: 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 --- src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java | 2 +- src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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) { -- cgit v1.2.3