From 980eedda6f3e6db907afabc5795a4cb66cb2ba42 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Sat, 3 Dec 2005 01:54:22 +0000 Subject: 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 --- src/classes/javax/media/opengl/GLContext.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3