Prevent GLFW changing working dir to 'Resources'

This commit is contained in:
Pablo Marcos Oltra
2018-07-29 18:24:46 +02:00
parent e82505b873
commit 89cec68565
2 changed files with 4 additions and 1 deletions

View File

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