Skip to content

Commit 446707b

Browse files
Define EGL and GLES libraries for Cocoa
* allow overrides at runtime
1 parent 3ec3185 commit 446707b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/egl_context.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,13 @@ static void destroyContextEGL(_GLFWwindow* window)
358358
////// GLFW internal API //////
359359
//////////////////////////////////////////////////////////////////////////
360360

361+
#ifdef _GLFW_COCOA
362+
const char * elg_lib = "libEGL.dylib";
363+
const char * gles_lib = "libGLESv2.dylib";
364+
#define _GLFW_EGL_LIBRARY elg_lib
365+
#define _GLFW_GLESV2_LIBRARY gles_lib
366+
#endif
367+
361368
// Initialize EGL
362369
//
363370
GLFWbool _glfwInitEGL(void)

0 commit comments

Comments
 (0)