From 89cec68565cb9540dfaca303e1fe72c6b65618f7 Mon Sep 17 00:00:00 2001 From: Pablo Marcos Oltra Date: Sun, 29 Jul 2018 18:24:46 +0200 Subject: Prevent GLFW changing working dir to 'Resources' --- src/core.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core.c') diff --git a/src/core.c b/src/core.c index aa76e88c..a1a1b1f9 100644 --- a/src/core.c +++ b/src/core.c @@ -1869,6 +1869,10 @@ static bool InitGraphicsDevice(int width, int height) #if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB) glfwSetErrorCallback(ErrorCallback); +#if defined(__APPLE__) + glfwInitHint(GLFW_COCOA_CHDIR_RESOURCES, GLFW_FALSE); +#endif + if (!glfwInit()) { TraceLog(LOG_WARNING, "Failed to initialize GLFW"); -- cgit v1.2.3