From 3b92e02f29ba8793ca4f37ed57d8bfa62b0fbda3 Mon Sep 17 00:00:00 2001 From: Don BURNS Date: Sat, 8 May 2004 18:37:26 +0000 Subject: [PATCH] Fixed a define for __sgi. Irix does not allow dlsym(0L, ...) without calling dlopen() first, just like __sun --- include/osg/GLExtensions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osg/GLExtensions b/include/osg/GLExtensions index 7e986f836..7230ddc85 100644 --- a/include/osg/GLExtensions +++ b/include/osg/GLExtensions @@ -61,7 +61,7 @@ inline void* getGLExtensionFuncPtr(const char *funcName) } else return NULL; -#elif defined (__sun) +#elif defined (__sun) || defined (__sgi) static void *handle = dlopen((const char *)0L, RTLD_LAZY); return dlsym(handle, funcName);