aboutsummaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/net')
-rw-r--r--src/net/java/games/jogl/impl/macosx/MacOSXGLContext.java2
-rw-r--r--src/net/java/games/jogl/impl/macosx/MacOSXOnscreenGLContext.java4
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) {