Clarified comment. Mac OS X: Added debug output
This commit is contained in:
parent
31a4d7e3f5
commit
e5a0e67f6d
|
@ -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 <elias_naur@users.sourceforge.net>
|
||||
* @version $Revision$
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue