summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/com/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-03-19 17:14:15 +0100
committerSven Gothel <[email protected]>2012-03-19 17:14:15 +0100
commitb823e8a0e18ec0b357d62af468a14162a9fb4948 (patch)
tree645c7179d85dfd1fb49b2a669d4656d772f46638 /src/jogl/classes/com/jogamp/opengl
parent8baa72ed68481feada5f91aa868c0ae258802e29 (diff)
Fix / Cleanup AWT related Threading code: Using enums, properly disable singlethreading if requested, fix doc: -Dopengl.1thread -> -Djogl.1thread
Diffstat (limited to 'src/jogl/classes/com/jogamp/opengl')
-rw-r--r--src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java
index 42097bd6d..b4c7cddf0 100644
--- a/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java
+++ b/src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java
@@ -480,7 +480,7 @@ public class GLCanvas extends Canvas implements GLAutoDrawable {
*/
protected boolean isRenderThread() {
if (Threading.isSingleThreaded()) {
- if (ThreadingImpl.getMode() != ThreadingImpl.WORKER) {
+ if (ThreadingImpl.getMode() != ThreadingImpl.Mode.ST_WORKER) {
final Display display = getDisplay();
return display != null && display.getThread() == Thread.currentThread();
}
@@ -521,7 +521,7 @@ public class GLCanvas extends Canvas implements GLAutoDrawable {
* The non-null action to dispatch.
*/
private void runInDesignatedGLThread(final Runnable makeCurrentAndRunAction) {
- if (ThreadingImpl.getMode() != ThreadingImpl.WORKER) {
+ if (ThreadingImpl.getMode() != ThreadingImpl.Mode.ST_WORKER) {
final Display display = getDisplay();
assert display.getThread() != Thread.currentThread() : "Incorrect use of thread dispatching.";
display.syncExec(makeCurrentAndRunAction);