mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
internal/graphicsdriver/opengl/gl: use RTLD_LAZY instead of RTLD_NOW
See the discussion at #2453.
This commit is contained in:
parent
56ec19caa1
commit
fcf454ef20
@ -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) {
|
||||
|
@ -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);
|
||||
// }
|
||||
|
Loading…
Reference in New Issue
Block a user