aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/javax/media/opengl
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-09-21 05:19:32 +0200
committerSven Gothel <[email protected]>2013-09-21 05:19:32 +0200
commit4ef07dc20a3d867feb1c51b4ce22ae3d06094781 (patch)
tree4888a9933d855f47fcc40af7d8dcbc96d9abd4e0 /src/jogl/classes/javax/media/opengl
parent939d6304d464e69b1d1d2a104c3da5536d3bf326 (diff)
Fix Bug 839: Clarify whether resetStates(..) shall clearStates() - Pass 'isInit' flag.
Diffstat (limited to 'src/jogl/classes/javax/media/opengl')
-rw-r--r--src/jogl/classes/javax/media/opengl/GLContext.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/jogl/classes/javax/media/opengl/GLContext.java b/src/jogl/classes/javax/media/opengl/GLContext.java
index 854d96807..2dca2a685 100644
--- a/src/jogl/classes/javax/media/opengl/GLContext.java
+++ b/src/jogl/classes/javax/media/opengl/GLContext.java
@@ -208,7 +208,7 @@ public abstract class GLContext {
protected long contextHandle;
protected GLContext() {
- resetStates();
+ resetStates(true);
}
protected VersionNumber ctxVersion;
@@ -222,9 +222,12 @@ public abstract class GLContext {
/** Did the drawable association changed ? see {@link GLRendererQuirks#NoSetSwapIntervalPostRetarget} */
protected boolean drawableRetargeted;
- protected void resetStates() {
+ /**
+ * @param isInit true if called for class initialization, otherwise false (re-init or destruction).
+ */
+ protected void resetStates(boolean isInit) {
if (DEBUG) {
- System.err.println(getThreadName() + ": GLContext.resetStates()");
+ System.err.println(getThreadName() + ": GLContext.resetStates(isInit "+isInit+")");
// Thread.dumpStack();
}
ctxVersion = VersionNumberString.zeroVersion;