From 77fd07eaa9e90167ae78a397ac9c53e535d3fde5 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 76118d0d6..ed0cd8d61 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__)