internal/graphicsdriver/opengl/gl: use RTLD_LAZY instead of RTLD_NOW

See the discussion at #2453.
This commit is contained in:
Hajime Hoshi 2022-11-14 04:46:07 +09:00
parent 56ec19caa1
commit fcf454ef20
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ package gl
// static void* getProcAddress(const char* name) {
// static void* libGL;
// if (!libGL) {
// libGL = dlopen("libGL.so", RTLD_NOW | RTLD_GLOBAL);
// libGL = dlopen("libGL.so", RTLD_LAZY | RTLD_GLOBAL);
// }
// static void*(*glXGetProcAddress)(const char*);
// if (!glXGetProcAddress) {

View File

@ -24,7 +24,7 @@ package gl
// static void* getProcAddress(const char* name) {
// static void* libGLES;
// if (!libGLES) {
// libGLES = dlopen("libGLESv2.so", RTLD_NOW | RTLD_GLOBAL);
// libGLES = dlopen("libGLESv2.so", RTLD_LAZY | RTLD_GLOBAL);
// }
// return dlsym(libGLES, name);
// }