aboutsummaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-04-10 00:44:12 +0000
committerKenneth Russel <[email protected]>2005-04-10 00:44:12 +0000
commit95a1681443162db968c5430097780bfd0ade0a68 (patch)
treeb0b56c6a642685e6d6557a23332c979563b2a424 /src/net
parent4f44fc490c647a0f3f5fc8b277266649c11b3691 (diff)
Fixed Issue 153: API method in SingleThreadedWorkaround class to change to old rendering model.
Added SingleThreadedWorkaround.disableWorkaround(); for now, don't want to add this to the core JOGL API because at some point the SingleThreadedWorkaround should hopefully really become an implementation detail that no application should have to worry about. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@259 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net')
-rwxr-xr-xsrc/net/java/games/jogl/impl/SingleThreadedWorkaround.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java b/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java
index 7b9fa46c4..ff79b5c6e 100755
--- a/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java
+++ b/src/net/java/games/jogl/impl/SingleThreadedWorkaround.java
@@ -85,6 +85,17 @@ public class SingleThreadedWorkaround {
});
}
+ /** Public method for users to disable the single-threaded
+ workaround in application code. Should perhaps eventually
+ promote this method to the public API. */
+ public static void disableWorkaround() {
+ systemPropertySpecified = true;
+ singleThreadedWorkaround = false;
+ if (Debug.verbose()) {
+ System.err.println("Application forced disabling of single-threaded workaround of dispatching display() on event thread");
+ }
+ }
+
public static void shouldDoWorkaround() {
if (!systemPropertySpecified) {
singleThreadedWorkaround = true;