aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-06-29 03:59:22 +0200
committerSven Gothel <[email protected]>2012-06-29 03:59:22 +0200
commit89b09958ef1ad9cdc228517d2acaa0dc27aa559f (patch)
tree67498688983f47f3ae80945691f4ecc8500cc937 /src/jogl/classes/jogamp/opengl/GLDrawableHelper.java
parentc03ad260aea0b4a640a5eeb50a206688c531b591 (diff)
Minor cleanup
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLDrawableHelper.java')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLDrawableHelper.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java b/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java
index c992b3cb2..e7651eaab 100644
--- a/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java
+++ b/src/jogl/classes/jogamp/opengl/GLDrawableHelper.java
@@ -413,10 +413,10 @@ public class GLDrawableHelper {
try {
res = context.makeCurrent();
- if (res != GLContext.CONTEXT_NOT_CURRENT) {
+ if (GLContext.CONTEXT_NOT_CURRENT != res) {
if(!isDisposeAction) {
perThreadInitAction.set(initAction);
- if (res == GLContext.CONTEXT_CURRENT_NEW) {
+ if (GLContext.CONTEXT_CURRENT_NEW == res) {
if (DEBUG) {
System.err.println("GLDrawableHelper " + this + ".invokeGL(): Running initAction");
}
@@ -427,7 +427,7 @@ public class GLDrawableHelper {
drawable.swapBuffers();
}
} else {
- if(res == GLContext.CONTEXT_CURRENT_NEW) {
+ if(GLContext.CONTEXT_CURRENT_NEW == res) {
throw new GLException(currentThread.getName()+" GLDrawableHelper " + this + ".invokeGL(): Dispose case (no init action given): Native context was not created (new ctx): "+context);
}
if(listeners.size()>0) {
@@ -439,7 +439,7 @@ public class GLDrawableHelper {
try {
if(isDisposeAction) {
context.destroy();
- } else if( res != GLContext.CONTEXT_NOT_CURRENT ) {
+ } else if( GLContext.CONTEXT_NOT_CURRENT != res ) {
context.release();
}
} catch (Exception e) {