From 95a1681443162db968c5430097780bfd0ade0a68 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sun, 10 Apr 2005 00:44:12 +0000 Subject: 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 --- src/net/java/games/jogl/impl/SingleThreadedWorkaround.java | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src') 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; -- cgit v1.2.3