diff --git a/src/java/org/lwjgl/opengl/GLContext.java b/src/java/org/lwjgl/opengl/GLContext.java index 77861967..6d5204d7 100644 --- a/src/java/org/lwjgl/opengl/GLContext.java +++ b/src/java/org/lwjgl/opengl/GLContext.java @@ -34,10 +34,7 @@ package org.lwjgl.opengl; import org.lwjgl.LWJGLException; import org.lwjgl.Sys; -import java.lang.ref.WeakReference; -import java.lang.reflect.Field; import java.lang.reflect.Method; -import java.lang.reflect.Modifier; import java.util.*; /** @@ -48,8 +45,8 @@ import java.util.*; * pointers. * * This class is thread-safe in the sense that multiple threads can safely call all public methods. The class is also - * thread-aware in the sense that it tracks a per-thread current context (and capabilities). That way, multiple threads - * can have multiple contexts current and render to them concurrently. + * thread-aware in the sense that it tracks a per-thread current context (including capabilities and function pointers). + * That way, multiple threads can have multiple contexts current and render to them concurrently. * * @author elias_naur * @version $Revision$ diff --git a/src/native/common/extgl.c b/src/native/common/extgl.c index 8b2cda00..055099f4 100644 --- a/src/native/common/extgl.c +++ b/src/native/common/extgl.c @@ -109,8 +109,10 @@ void *extgl_GetProcAddress(const char *name) NSSymbol sym = NSLookupSymbolInImage(opengl_lib_handle, mach_name, NSLOOKUPSYMBOLINIMAGE_OPTION_BIND | NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR); void *address = NSAddressOfSymbol(sym); return address; - } else + } else { + printfDebug("Could not locate symbol %s\n", name); return NULL; + } #endif }