diff options
author | Kenneth Russel <kbrussel@alum.mit.edu> | 2003-09-05 16:25:38 +0000 |
---|---|---|
committer | Kenneth Russel <kbrussel@alum.mit.edu> | 2003-09-05 16:25:38 +0000 |
commit | 88dba17d799c1faf2b3185636a8e6cc1e021b80c (patch) | |
tree | e8d03891b4d54d013111891d3b0726bc9b0c81cc /src/net/java/games/jogl | |
parent | 4c6d717f37d4a6cf50fd06056f1a2357815a9ccf (diff) |
Added Gerard Ziemski's new sources for faster dynamic symbol lookup on
Mac OS X. Removed workarounds for earlier JAWT bugs on OS X.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@60 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl')
-rw-r--r-- | src/net/java/games/jogl/GLCanvas.java | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/src/net/java/games/jogl/GLCanvas.java b/src/net/java/games/jogl/GLCanvas.java index d5f6dbfdc..527289fdc 100644 --- a/src/net/java/games/jogl/GLCanvas.java +++ b/src/net/java/games/jogl/GLCanvas.java @@ -61,10 +61,6 @@ public final class GLCanvas extends Canvas implements GLDrawable { private GLDrawableHelper drawableHelper = new GLDrawableHelper(); private GLContext context; - // FIXME: Temporary workaround for JAWT bug in Panther developer release. - // This workaround makes things quite a bit slower - private static final boolean isOSX = System.getProperty("os.name").equals("Mac OS X"); - GLCanvas(GLCapabilities capabilities, GLCapabilitiesChooser chooser, GLDrawable shareWith) { @@ -83,24 +79,14 @@ public final class GLCanvas extends Canvas implements GLDrawable { } public void display() { - if (isOSX) { - // Temporary workaround for JAWT bug in Panther developer release. - // All OpenGL rendering must occur on the AWT event thread. - repaint(); - } else { - displayImpl(); - } + displayImpl(); } /** Overridden from Canvas; calls {@link #display}. Should not be invoked by applications directly. */ public void paint(Graphics g) { - if (isOSX) { - displayImpl(); - } else { - if (!context.getNoAutoRedrawMode()) { - display(); - } + if (!context.getNoAutoRedrawMode()) { + display(); } } |