diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c35e6f7..1148217e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -133,7 +133,6 @@ if(NOT (EMSCRIPTEN OR ANDROID)) set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "") set(GLFW_BUILD_TESTS OFF CACHE BOOL "") set(GLFW_BUILD_DOCS OFF CACHE BOOL "") - set(GLFW_USE_CHDIR OFF CACHE BOOL "") set(BUILD_SHARED_LIBS ON CACHE BOOL "") add_subdirectory(deps/glfw glfw) include_directories(deps/glfw/include) diff --git a/src/core/platform_glfw.c.h b/src/core/platform_glfw.c.h index 446e7cc3..495cc1a2 100644 --- a/src/core/platform_glfw.c.h +++ b/src/core/platform_glfw.c.h @@ -98,6 +98,7 @@ static void onGlfwError(int code, const char* description) { bool lovrPlatformInit() { glfwSetErrorCallback(onGlfwError); + glfwInitHint(GLFW_COCOA_CHDIR_RESOURCES, GLFW_FALSE); return glfwInit(); }