From e8f47b066d477d994d3aaf4d40a84be5b6ae43ae Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 22 Jul 2004 15:59:38 +0000 Subject: [PATCH] Added a comment that a context must be current before calling GLContext.useContext() --- src/java/org/lwjgl/opengl/GLContext.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/org/lwjgl/opengl/GLContext.java b/src/java/org/lwjgl/opengl/GLContext.java index 11a39c80..c69b8e9c 100644 --- a/src/java/org/lwjgl/opengl/GLContext.java +++ b/src/java/org/lwjgl/opengl/GLContext.java @@ -214,7 +214,8 @@ public final class GLContext { } /** - * Makes a GL context the current context. This method does not make the context current though! + * Makes a GL context the current LWJGL context by loading GL function pointers. + * The context must be current before a call to this method! * Instead it simply ensures that the current context is reflected accurately by GLContext's * extension caps and function pointers. Use useContext(null) when no context is active. *

If the context is the same as last time, then this is a no-op.