From ec95d0382c3ce29fff411d64fc631d6e2e8067a3 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Fri, 19 Nov 2004 17:11:58 +0000 Subject: 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 --- src/net/java/games/jogl/impl/SingleThreadedWorkaround.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net') 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"); } } -- cgit v1.2.3