mirror of https://github.com/bjornbytes/lovr.git
Use new glfw method for avoiding chdir;
This commit is contained in:
parent
7932130d9b
commit
0bd5fced12
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue