summaryrefslogtreecommitdiffstats
path: root/src/classes/javax/media/opengl/GLContext.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-12-03 01:54:22 +0000
committerKenneth Russel <[email protected]>2005-12-03 01:54:22 +0000
commit980eedda6f3e6db907afabc5795a4cb66cb2ba42 (patch)
tree927ebea307e70695491f2a59072de15824f07239 /src/classes/javax/media/opengl/GLContext.java
parent5db7ce6d71df0ffe204762dbeb19d17eb94344cc (diff)
Made GLContext.setCurrent() protected based on feedback from user zero
on JOGL forum; ran by JSR-231 expert group git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@473 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/classes/javax/media/opengl/GLContext.java')
-rw-r--r--src/classes/javax/media/opengl/GLContext.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/classes/javax/media/opengl/GLContext.java b/src/classes/javax/media/opengl/GLContext.java
index 970c7cb00..1539436ac 100644
--- a/src/classes/javax/media/opengl/GLContext.java
+++ b/src/classes/javax/media/opengl/GLContext.java
@@ -123,12 +123,11 @@ public abstract class GLContext {
}
/**
- * Sets the current context object on the current thread. This
- * method is called by GLContext implementations during {@link
- * #makeCurrent} and does not need to be called by end users.
- *
+ * Sets the thread-local variable returned by {@link #getCurrent}
+ * and has no other side-effects. For use by third parties adding
+ * new GLContext implementations; not for use by end users.
*/
- public static void setCurrent(GLContext cur) {
+ protected static void setCurrent(GLContext cur) {
currentContext.set(cur);
}