Paolo Invernizzi
Joined: 20 Jul 2006 Posts: 17
|
Posted: Thu Mar 29, 2007 7:19 am Post subject: OS X 10.4.9 GDC 0.23 and derelict opengl |
|
|
Hi all,
With this little patch, I can use derelict OpenGL on OS X.
Can be merged in the trunk?
Thanks! Paolo
Code: |
Index: gl.d
===================================================================
--- gl.d (revision 247)
+++ gl.d (working copy)
@@ -55,7 +55,9 @@
import derelict.util.wintypes;
}
else version(linux)
- version = UsingGLX;
+ version = UsingGLX;
+ else version(darwin)
+ void loadPlatformGL(SharedLib lib){};
version(UsingGLX)
import derelict.opengl.glx;
@@ -328,7 +330,7 @@
DerelictGL.setup (
"opengl32.dll",
"libGL.so,libGL.so.1",
- "",
+ "/System/Library/Frameworks/OpenGL.framework/OpenGL",
&loadAll
);
}
|
|
|