From 8da5bfa2d72282bfdcd2889a70a93a4072221a1c Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Thu, 3 Feb 2005 23:25:53 +0000 Subject: Fixed Issue 44: Add pbuffer-based GLJPanel implementation Fixed Issue 61: Make debug variables load from system properties Added a hardware acceleration path for GLJPanel implemented using the GLPbuffer interfaces. If instantiation of the pbuffer fails, the GLJPanel implementation attempts to catch the resulting exception and fall back on the existing software rendering path. The new code has been successfully tested on Windows. This checkin attempts to make the needed changes to the pbuffer implementation on other platforms, but the GLJPanel continues to use software rendering until all platforms can be tested. Additionally, references to static final DEBUG flags have been made settable via system properties. "jogl.verbose" enables certain printing statements. "jogl.debug" enables all debugging printing. "jogl.debug.GLContext" enables the debug printing inside the GLContext class. The system property names are chosen by convention and are not enforced. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@209 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/impl/SingleThreadedWorkaround.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/net/java/games/jogl/impl/SingleThreadedWorkaround.java') diff --git a/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java b/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java index 2ffd09e6a..eb7d8f09d 100755 --- a/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java +++ b/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java @@ -52,7 +52,6 @@ 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() { @@ -66,7 +65,6 @@ public class SingleThreadedWorkaround { systemPropertySpecified = true; singleThreadedWorkaround = Boolean.valueOf(workaround).booleanValue(); } - verbose = (System.getProperty("jogl.verbose") != null); printWorkaroundNotice(); return null; } @@ -85,7 +83,7 @@ public class SingleThreadedWorkaround { } private static void printWorkaroundNotice() { - if (singleThreadedWorkaround && verbose) { + if (singleThreadedWorkaround && Debug.verbose()) { System.err.println("Using single-threaded workaround of dispatching display() on event thread"); } } -- cgit v1.2.3