From 8b8c427afef9c57e1905e1b77e213b360329fea0 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 28 Aug 2018 11:22:57 +0100 Subject: [PATCH] Replaced the glSGetProcAddressARB code with the dlsym() usage as the NVidia driver looks to be returning non NULL pointers for invalid function names. --- src/osg/GLExtensions.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/osg/GLExtensions.cpp b/src/osg/GLExtensions.cpp index 517b92534..f538119f5 100644 --- a/src/osg/GLExtensions.cpp +++ b/src/osg/GLExtensions.cpp @@ -399,17 +399,6 @@ OSG_INIT_SINGLETON_PROXY(GLExtensionDisableStringInitializationProxy, osg::getGL #elif defined (__linux__) - typedef void (*__GLXextFuncPtr)(void); - typedef __GLXextFuncPtr (*GetProcAddressARBProc)(const char*); - - #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) - static GetProcAddressARBProc s_glXGetProcAddressARB = convertPointerType(dlsym(0, "glXGetProcAddressARB")); - if (s_glXGetProcAddressARB) - { - return convertPointerType((s_glXGetProcAddressARB)(funcName)); - } - #endif - return dlsym(0, funcName); #elif defined (__QNX__)