summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-03-28 17:18:13 +0100
committerSven Gothel <[email protected]>2013-03-28 17:18:13 +0100
commitfa847cd755833ab7f3530bffbb63ccfd8863a9f6 (patch)
treeda6043833569a9b37596cf3dd668c8e7d6e8071b /src/jogl/classes/jogamp/opengl
parentb95dbaeb0d23d365bc15d9b6deb4149d35be533a (diff)
GLStateKeeper: Add clearPreservedGLState()
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
-rw-r--r--src/jogl/classes/jogamp/opengl/GLAutoDrawableBase.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/jogl/classes/jogamp/opengl/GLAutoDrawableBase.java b/src/jogl/classes/jogamp/opengl/GLAutoDrawableBase.java
index 2f405a8c6..1eb7c618c 100644
--- a/src/jogl/classes/jogamp/opengl/GLAutoDrawableBase.java
+++ b/src/jogl/classes/jogamp/opengl/GLAutoDrawableBase.java
@@ -121,8 +121,6 @@ public abstract class GLAutoDrawableBase implements GLAutoDrawable, GLStateKeepe
System.err.println("GLAutoDrawableBase.setPreserveGLStateAtDestroy: ("+Thread.currentThread().getName()+"): "+preserveGLELSAtDestroy+" -> "+value+" - surfaceHandle 0x"+Long.toHexString(getNativeSurface().getSurfaceHandle()));
}
preserveGLELSAtDestroy = value;
- } else {
-
}
return res;
}
@@ -135,6 +133,13 @@ public abstract class GLAutoDrawableBase implements GLAutoDrawable, GLStateKeepe
return glels;
}
+ @Override
+ public final GLEventListenerState clearPreservedGLState() {
+ final GLEventListenerState r = glels;
+ glels = null;
+ return r;
+ }
+
/**
* Pulls the {@link GLEventListenerState} from this {@link GLAutoDrawable}.
*