Skip to content

Commit

Permalink
dlopen with RTLD_LOCAL.
Browse files Browse the repository at this point in the history
  • Loading branch information
skaslev committed Dec 14, 2017
1 parent 3e98d63 commit 8f7f459
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gl3w_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def write(f, s):
static int open_libgl(void)
{
libgl = dlopen("/System/Library/Frameworks/OpenGL.framework/OpenGL", RTLD_LAZY | RTLD_GLOBAL);
libgl = dlopen("/System/Library/Frameworks/OpenGL.framework/OpenGL", RTLD_LAZY | RTLD_LOCAL);
if (!libgl)
return GL3W_ERROR_LIBRARY_OPEN;
Expand All @@ -250,7 +250,7 @@ def write(f, s):
static int open_libgl(void)
{
libgl = dlopen("libGL.so.1", RTLD_LAZY | RTLD_GLOBAL);
libgl = dlopen("libGL.so.1", RTLD_LAZY | RTLD_LOCAL);
if (!libgl)
return GL3W_ERROR_LIBRARY_OPEN;
Expand Down

0 comments on commit 8f7f459

Please sign in to comment.