[wpigui] disable changing directory when initializing on MacOS (#4092)

- Seems to be intended for resource bundles in MacOS apps, which we don't use
This commit is contained in:
Dustin Spicuzza
2022-03-14 13:05:22 -04:00
committed by GitHub
parent ab7ac4fbb9
commit f93c3331b3

View File

@@ -125,6 +125,7 @@ bool gui::Initialize(const char* title, int width, int height) {
// Setup window
glfwSetErrorCallback(ErrorCallback);
glfwInitHint(GLFW_JOYSTICK_HAT_BUTTONS, GLFW_FALSE);
glfwInitHint(GLFW_COCOA_CHDIR_RESOURCES, GLFW_FALSE);
PlatformGlfwInitHints();
if (!glfwInit()) {
return false;