aboutsummaryrefslogtreecommitdiffstats
path: root/src/classes/com/sun/opengl/impl/macosx
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-03-26 18:52:02 +0000
committerKenneth Russel <[email protected]>2006-03-26 18:52:02 +0000
commit2dbbfdd226bf1a9158936531a299adb5bdd2ad4a (patch)
tree641e8eec677b1a637844fc77399dc87b4e931042 /src/classes/com/sun/opengl/impl/macosx
parent56c6a96fd7d1f7d50507662922d5f92c7db39da6 (diff)
Fixed bugs in implementation of -Djogl.GLContext.noopt flag
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@685 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.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/classes/com/sun/opengl/impl/macosx/MacOSXOnscreenGLContext.java b/src/classes/com/sun/opengl/impl/macosx/MacOSXOnscreenGLContext.java
index 977e3315c..3f08b084e 100644
--- a/src/classes/com/sun/opengl/impl/macosx/MacOSXOnscreenGLContext.java
+++ b/src/classes/com/sun/opengl/impl/macosx/MacOSXOnscreenGLContext.java
@@ -77,7 +77,7 @@ public class MacOSXOnscreenGLContext extends MacOSXGLContext {
}
return ret;
} finally {
- if (optimizationEnabled) {
+ if (isOptimizable()) {
if (lockRes != MacOSXOnscreenGLDrawable.LOCK_SURFACE_NOT_READY) {
drawable.unlockSurface();
}
@@ -86,10 +86,10 @@ public class MacOSXOnscreenGLContext extends MacOSXGLContext {
}
protected void releaseImpl() throws GLException {
- if (!optimizationEnabled) {
- try {
- super.releaseImpl();
- } finally {
+ try {
+ super.releaseImpl();
+ } finally {
+ if (!isOptimizable()) {
drawable.unlockSurface();
}
}