diff options
author | Kenneth Russel <[email protected]> | 2006-06-02 00:05:01 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-06-02 00:05:01 +0000 |
commit | 3f27df9bec4dbd2dbfef618e10693387c393c143 (patch) | |
tree | 753ebf1b0c65b5d6d794f1be4f17083f63bb79e4 /src/classes/com/sun/opengl/impl | |
parent | c74ad143b27ddddbdf4854b51837838ddb8c93b3 (diff) |
Changed default sense of GLContext optimization flag to false. Now
must explicitly specify -Djogl.GLContext.optimize on the command line
to enable it. Added note to the user guide in the section on X11
platforms discussing this.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@795 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/com/sun/opengl/impl')
-rw-r--r-- | src/classes/com/sun/opengl/impl/GLContextImpl.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/classes/com/sun/opengl/impl/GLContextImpl.java b/src/classes/com/sun/opengl/impl/GLContextImpl.java index d363cfe80..fcd1e58be 100644 --- a/src/classes/com/sun/opengl/impl/GLContextImpl.java +++ b/src/classes/com/sun/opengl/impl/GLContextImpl.java @@ -50,7 +50,16 @@ public abstract class GLContextImpl extends GLContext { protected static final boolean DEBUG = Debug.debug("GLContextImpl"); protected static final boolean VERBOSE = Debug.verbose(); protected static final boolean NO_FREE = Debug.isPropertyDefined("jogl.GLContext.nofree"); - protected boolean optimizationEnabled = !Debug.isPropertyDefined("jogl.GLContext.noopt"); + // NOTE: default sense of GLContext optimization disabled in JSR-231 + // 1.0 beta 5 due to problems on X11 platforms (both Linux and + // Solaris) when moving and resizing windows. Apparently GLX tokens + // get sent to the X server under the hood (and out from under the + // cover of the AWT lock) in these situations. Users requiring + // multi-screen X11 applications can manually enable this flag. It + // basically had no tangible effect on the Windows or Mac OS X + // platforms anyway in particular with the disabling of the + // GLWorkerThread which we found to be necessary in 1.0 beta 4. + protected boolean optimizationEnabled = Debug.isPropertyDefined("jogl.GLContext.optimize"); // Cache of the functions that are available to be called at the current // moment in time |