Replaced the glSGetProcAddressARB code with the dlsym() usage as the NVidia driver looks to be returning non NULL pointers for invalid function names.
This commit is contained in:
parent
f55b864d59
commit
8b8c427afe
@ -399,17 +399,6 @@ OSG_INIT_SINGLETON_PROXY(GLExtensionDisableStringInitializationProxy, osg::getGL
|
|||||||
|
|
||||||
#elif defined (__linux__)
|
#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<GetProcAddressARBProc, void*>(dlsym(0, "glXGetProcAddressARB"));
|
|
||||||
if (s_glXGetProcAddressARB)
|
|
||||||
{
|
|
||||||
return convertPointerType<void*, __GLXextFuncPtr>((s_glXGetProcAddressARB)(funcName));
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return dlsym(0, funcName);
|
return dlsym(0, funcName);
|
||||||
|
|
||||||
#elif defined (__QNX__)
|
#elif defined (__QNX__)
|
||||||
|
Loading…
Reference in New Issue
Block a user