summaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/GLContext.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java/games/jogl/impl/GLContext.java')
-rw-r--r--src/net/java/games/jogl/impl/GLContext.java20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/net/java/games/jogl/impl/GLContext.java b/src/net/java/games/jogl/impl/GLContext.java
index 5260bda6a..7ae7b1342 100644
--- a/src/net/java/games/jogl/impl/GLContext.java
+++ b/src/net/java/games/jogl/impl/GLContext.java
@@ -691,17 +691,15 @@ public abstract class GLContext {
their makeCurrent() implementation once the context is
current. */
private void recomputeSingleThreadedWorkaround() {
- if (!SingleThreadedWorkaround.doWorkaround()) {
- GL gl = getGL();
- String str = gl.glGetString(GL.GL_VENDOR);
- if (str != null && str.indexOf("ATI") >= 0) {
- // Doing this instead of calling setRenderingThread(null) should
- // 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();
- }
+ GL gl = getGL();
+ String str = gl.glGetString(GL.GL_VENDOR);
+ if (str != null && str.indexOf("ATI") >= 0) {
+ // Doing this instead of calling setRenderingThread(null) should
+ // 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();
}
}
}