mirror of https://github.com/adamdruppe/arsd.git
ogl osx
This commit is contained in:
parent
307785edbb
commit
9a2f0bcfe6
|
@ -5482,6 +5482,9 @@ version(without_opengl) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version(OSX)
|
||||||
|
mixin DynamicLoad!(GLX, "GL", true) glx;
|
||||||
|
else
|
||||||
mixin DynamicLoad!(GLX, "GLX", true) glx;
|
mixin DynamicLoad!(GLX, "GLX", true) glx;
|
||||||
shared static this() {
|
shared static this() {
|
||||||
glx.loadDynamicLibrary();
|
glx.loadDynamicLibrary();
|
||||||
|
@ -14999,7 +15002,7 @@ private mixin template DynamicLoad(Iface, string library, bool openGLRelated = f
|
||||||
version(Posix) {
|
version(Posix) {
|
||||||
import core.sys.posix.dlfcn;
|
import core.sys.posix.dlfcn;
|
||||||
version(OSX) {
|
version(OSX) {
|
||||||
if(!openGLRelated)
|
version(X11)
|
||||||
libHandle = dlopen("/usr/X11/lib/lib" ~ library ~ ".dylib", RTLD_NOW);
|
libHandle = dlopen("/usr/X11/lib/lib" ~ library ~ ".dylib", RTLD_NOW);
|
||||||
else
|
else
|
||||||
libHandle = dlopen(library ~ ".dylib", RTLD_NOW);
|
libHandle = dlopen(library ~ ".dylib", RTLD_NOW);
|
||||||
|
|
Loading…
Reference in New Issue