diff --git a/include/osg/GLExtensions b/include/osg/GLExtensions index 7230ddc85..46e4e95b6 100644 --- a/include/osg/GLExtensions +++ b/include/osg/GLExtensions @@ -61,7 +61,12 @@ inline void* getGLExtensionFuncPtr(const char *funcName) } else return NULL; -#elif defined (__sun) || defined (__sgi) +#elif defined (__sun) + + static void *handle = dlopen((const char *)0L, RTLD_LAZY); + return dlsym(handle, funcName); + +#elif defined (__sgi) static void *handle = dlopen((const char *)0L, RTLD_LAZY); return dlsym(handle, funcName);