diff options
author | Kenneth Russel <[email protected]> | 2004-11-19 17:11:58 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2004-11-19 17:11:58 +0000 |
commit | ec95d0382c3ce29fff411d64fc631d6e2e8067a3 (patch) | |
tree | 4bedcf33c80fdeca079ff342be9e11c3b22d7116 | |
parent | e088362d49d9c64fa3c862d7a3cd6f07485985eb (diff) |
Conditioned ATI_WORKAROUND notice on jogl.verbose system property
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@173 232f8b59-042b-4e1e-8c03-345bb8c30851
-rwxr-xr-x | src/net/java/games/jogl/impl/SingleThreadedWorkaround.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java b/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java index ca6485ea2..9dbed9e43 100755 --- a/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java +++ b/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java @@ -52,6 +52,7 @@ public class SingleThreadedWorkaround { // If the user specified the workaround's system property (either // true or false), don't let the automatic detection have any effect private static boolean systemPropertySpecified = false; + private static boolean verbose = false; static { AccessController.doPrivileged(new PrivilegedAction() { @@ -61,6 +62,7 @@ public class SingleThreadedWorkaround { systemPropertySpecified = true; ATI_WORKAROUND = Boolean.valueOf(workaround).booleanValue(); } + verbose = (System.getProperty("jogl.verbose") != null); printWorkaroundNotice(); return null; } @@ -79,7 +81,7 @@ public class SingleThreadedWorkaround { } private static void printWorkaroundNotice() { - if (ATI_WORKAROUND) { + if (ATI_WORKAROUND && verbose) { System.err.println("Using ATI workaround of dispatching display() on event thread"); } } |