mirror of
https://github.com/glfw/glfw.git
synced 2026-09-21 16:44:11 +00:00
Renamed chdir option, added OS X menu bar option.
Some command-line programs want to render to hidden windows without any visible UI. This option makes this possible on OS X.
This commit is contained in:
+3
-3
@@ -34,7 +34,7 @@
|
||||
// Change to our application bundle's resources directory, if present
|
||||
//========================================================================
|
||||
|
||||
#if defined(_GLFW_CD_RESOURCES)
|
||||
#if defined(_GLFW_USE_CHDIR)
|
||||
|
||||
static void changeToResourcesDirectory(void)
|
||||
{
|
||||
@@ -70,7 +70,7 @@ static void changeToResourcesDirectory(void)
|
||||
chdir(resourcesPath);
|
||||
}
|
||||
|
||||
#endif /* _GLFW_CD_RESOURCES */
|
||||
#endif /* _GLFW_USE_CHDIR */
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
@@ -94,7 +94,7 @@ int _glfwPlatformInit(void)
|
||||
return GL_FALSE;
|
||||
}
|
||||
|
||||
#if defined(_GLFW_CD_RESOURCES)
|
||||
#if defined(_GLFW_USE_CHDIR)
|
||||
changeToResourcesDirectory();
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user