Use new glfw method for avoiding chdir;

This commit is contained in:
bjorn 2019-11-03 15:31:21 -08:00
parent 7932130d9b
commit 0bd5fced12
2 changed files with 1 additions and 1 deletions

View File

@ -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)

View File

@ -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();
}