Checked in Tino Schwarze's port to HP-UX.

This commit is contained in:
Robert Osfield
2002-07-23 10:48:22 +00:00
parent 609a9ebf21
commit 80afddc08d
20 changed files with 165 additions and 25 deletions

View File

@@ -71,6 +71,10 @@ void* osg::getGLExtensionFuncPtr(const char *funcName)
symbol = NSLookupAndBindSymbol( temp.c_str() );
return NSAddressOfSymbol( symbol );
#else // all other unixes
// Note: although we use shl_load() etc. for Plugins on HP-UX, it's
// not neccessary here since we only used them because library
// intialization was not taking place with dlopen() which renders
// Plugins useless on HP-UX.
static void *lib = dlopen("libGL.so", RTLD_LAZY);
if (lib)
return dlsym(lib, funcName);