Merge pull request #463 from xyzz/android-gl1

getGLExtensionFuncPtr: support gl4es wrapper on Android.
This commit is contained in:
OpenSceneGraph git repository
2018-01-30 09:53:45 +00:00
committed by GitHub

View File

@@ -339,6 +339,8 @@ OSG_INIT_SINGLETON_PROXY(GLExtensionDisableStringInitializationProxy, osg::getGL
static void *handle = dlopen("libGLESv1_CM.so", RTLD_NOW);
#elif defined(OSG_GLES2_AVAILABLE)
static void *handle = dlopen("libGLESv2.so", RTLD_NOW);
#elif defined(OSG_GL1_AVAILABLE)
static void *handle = dlopen("libGL.so", RTLD_NOW);
#endif
return dlsym(handle, funcName);