diff options
author | Kenneth Russel <[email protected]> | 2005-12-03 01:54:22 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-12-03 01:54:22 +0000 |
commit | 980eedda6f3e6db907afabc5795a4cb66cb2ba42 (patch) | |
tree | 927ebea307e70695491f2a59072de15824f07239 /src/classes/javax/media/opengl | |
parent | 5db7ce6d71df0ffe204762dbeb19d17eb94344cc (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')
-rw-r--r-- | src/classes/javax/media/opengl/GLContext.java | 9 |
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); } |