aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/macosx
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-03-10 10:05:34 +0000
committerKenneth Russel <[email protected]>2006-03-10 10:05:34 +0000
commit35ee11ab877097d8a24d82f7a458d1a4f9a0b803 (patch)
tree25b16896c27eab504db9cccee83e7e34b024a798 /src/classes/com/sun/opengl/impl/macosx
parent151be5e32298c4cd0162bf76de05e3ad8389cd2c (diff)
Fixed resizing bug on Mac OS X which was a consequence of leaving the
context permanently current on the GLWorkerThread git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@658 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl/macosx')
-rw-r--r--src/classes/com/sun/opengl/impl/macosx/MacOSXOnscreenGLContext.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/classes/com/sun/opengl/impl/macosx/MacOSXOnscreenGLContext.java b/src/classes/com/sun/opengl/impl/macosx/MacOSXOnscreenGLContext.java
index dedc5a0ee..e011d271b 100644
--- a/src/classes/com/sun/opengl/impl/macosx/MacOSXOnscreenGLContext.java
+++ b/src/classes/com/sun/opengl/impl/macosx/MacOSXOnscreenGLContext.java
@@ -88,4 +88,11 @@ public class MacOSXOnscreenGLContext extends MacOSXGLContext {
throw new GLException("Error swapping buffers");
}
}
+
+ protected void update() throws GLException {
+ if (nsContext == 0) {
+ throw new GLException("Context not created");
+ }
+ CGL.updateContext(nsContext);
+ }
}