aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/GLContext.java
diff options
context:
space:
mode:
authorgkw <[email protected]>2004-10-27 21:06:42 +0000
committergkw <[email protected]>2004-10-27 21:06:42 +0000
commit5dcb14c9c04c198dcb8fc52fbd224eaa39b20f87 (patch)
tree72a1da2bf7635c431bf2258c1c63e925cf918d70 /src/net/java/games/jogl/impl/GLContext.java
parent469b120fc5e59a5b6a25632eb7ab66ea6956dd91 (diff)
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
Diffstat (limited to 'src/net/java/games/jogl/impl/GLContext.java')
-rw-r--r--src/net/java/games/jogl/impl/GLContext.java4
1 files changed, 3 insertions, 1 deletions
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;
+ }
}
}
}