fixed typos

This commit is contained in:
Andy Somogyi 2018-10-23 15:30:33 -04:00
parent 6217a1231b
commit 58fe32493d
2 changed files with 8 additions and 10 deletions

View File

@ -359,7 +359,7 @@ void _glfwPlatformTerminate(void)
_glfwTerminateNSGL();
_glfwTerminateJoysticksNS();
_glfwDestroyAutorealeasePool();
_glfwDestroyAutoreleasePool();
}
const char* _glfwPlatformGetVersionString(void)
@ -390,9 +390,8 @@ void _glfwCreateAutoreleasePool()
}
}
// Clears and resets the autorealease pool if GLFW is managing its own even loop,
// and not using the built-in NSApplication event loop. GLFW creates its own
// autorelease pool only if it is running its own event loop
// Clears and resets the autorelease pool only if if GLFW is managing its own
// event loop, and not using the built-in NSApplication event loop.
void _glfwResetAutoreleasePool()
{
if(!isNSApplicationRunning())
@ -402,7 +401,7 @@ void _glfwResetAutoreleasePool()
}
}
void _glfwDestroyAutorealeasePool()
void _glfwDestroyAutoreleasePool()
{
if(!isNSApplicationRunning())
{

View File

@ -162,12 +162,11 @@ void _glfwPollMonitorsNS(void);
GLFWbool _glfwSetVideoModeNS(_GLFWmonitor* monitor, const GLFWvidmode* desired);
void _glfwRestoreVideoModeNS(_GLFWmonitor* monitor);
// If GLFW is running as a stand-alone application, we create a global autorealease
// If GLFW is running as a stand-alone application, we create a global autorelease
// pool. If GLFW is running in an existing native Cocoa app, the underlying
// NSApplication creates its own autorelease pool. These functions check if GLFW
// is running in a Cocoa app or not, and creates the autorealease pool accordingly.
// NSApplication create its own autorelease pool. These functions check if GLFW
// is running in a Cocoa app or not, and creates the autorelease pool accordingly.
// If GLFW is in a Cocoa app, these functions don't do anything
void _glfwCreateAutoreleasePool();
void _glfwResetAutoreleasePool();
void _glfwDestroyAutorealeasePool();
void _glfwDestroyAutoreleasePool();