diff options
| author | Ray <[email protected]> | 2018-07-29 23:40:13 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-07-29 23:40:13 +0200 |
| commit | 7154a833138d4ec2990d7503bd8dfbd47920e9f7 (patch) | |
| tree | e1dd5530a916091eb2fb59082bad0f832617ace6 /src/core.c | |
| parent | 78487f7521a48460dda9560569add9893a4862cc (diff) | |
| parent | 89cec68565cb9540dfaca303e1fe72c6b65618f7 (diff) | |
| download | raylib-7154a833138d4ec2990d7503bd8dfbd47920e9f7.tar.gz raylib-7154a833138d4ec2990d7503bd8dfbd47920e9f7.zip | |
Merge pull request #610 from pamarcos/fix_chdir_macos
[games] Prevent GLFW changing working dir to 'Resources'
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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"); |
