From 5dcb14c9c04c198dcb8fc52fbd224eaa39b20f87 Mon Sep 17 00:00:00 2001 From: gkw Date: Wed, 27 Oct 2004 21:06:42 +0000 Subject: recomputeSingleThreadedWorkaround() erroneously disabled context optimization when ATI_WORKAROUND=false. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@161 232f8b59-042b-4e1e-8c03-345bb8c30851 --- src/net/java/games/jogl/impl/GLContext.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net/java') diff --git a/src/net/java/games/jogl/impl/GLContext.java b/src/net/java/games/jogl/impl/GLContext.java index 7ae7b1342..5a56bf9ee 100644 --- a/src/net/java/games/jogl/impl/GLContext.java +++ b/src/net/java/games/jogl/impl/GLContext.java @@ -698,8 +698,10 @@ public abstract class GLContext { // be OK since we are doing this very early in the maintenance // of the per-thread context stack, before we are actually // pushing any GLContext objects on it - renderingThread = null; SingleThreadedWorkaround.shouldDoWorkaround(); + if( SingleThreadedWorkaround.doWorkaround() ) { + renderingThread = null; + } } } } -- cgit v1.2.3