diff --git a/src/context.c b/src/context.c index 9279af8e..a2e872ba 100644 --- a/src/context.c +++ b/src/context.c @@ -425,7 +425,7 @@ GLboolean _glfwRefreshContextAttribs(void) if (glfwExtensionSupported("GL_ARB_robustness")) { // NOTE: We avoid using the context flags for detection, as they are - // only present from 3.0 while the extension applies from 1.1 + // only present from 3.0 while the extension applies from 1.1 GLint strategy; glGetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, &strategy); @@ -442,7 +442,7 @@ GLboolean _glfwRefreshContextAttribs(void) if (glfwExtensionSupported("GL_EXT_robustness")) { // NOTE: The values of these constants match those of the OpenGL ARB - // one, so we can reuse them here + // one, so we can reuse them here GLint strategy; glGetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, &strategy); diff --git a/src/glx_context.c b/src/glx_context.c index 824ffab3..47ae653f 100644 --- a/src/glx_context.c +++ b/src/glx_context.c @@ -457,8 +457,8 @@ int _glfwCreateContext(_GLFWwindow* window, if (wndconfig->glMajor != 1 || wndconfig->glMinor != 0) { // NOTE: Only request an explicitly versioned context when - // necessary, as explicitly requesting version 1.0 does not always - // return the highest available version + // necessary, as explicitly requesting version 1.0 does not + // always return the highest available version setGLXattrib(GLX_CONTEXT_MAJOR_VERSION_ARB, wndconfig->glMajor); setGLXattrib(GLX_CONTEXT_MINOR_VERSION_ARB, wndconfig->glMinor); diff --git a/src/nsgl_context.m b/src/nsgl_context.m index 1051fe7d..71638ad1 100644 --- a/src/nsgl_context.m +++ b/src/nsgl_context.m @@ -178,7 +178,7 @@ int _glfwCreateContext(_GLFWwindow* window, } // NOTE: All NSOpenGLPixelFormats on the relevant cards support sRGB - // frambuffer, so there's no need (and no way) to request it + // frambuffer, so there's no need (and no way) to request it ADD_ATTR(0); diff --git a/src/win32_window.c b/src/win32_window.c index 7480f70c..21690d3f 100644 --- a/src/win32_window.c +++ b/src/win32_window.c @@ -145,7 +145,7 @@ static int translateKey(WPARAM wParam, LPARAM lParam) { // Check for numeric keypad keys // NOTE: This way we always force "NumLock = ON", which is intentional since - // the returned key code should correspond to a physical location. + // the returned key code should correspond to a physical location. if ((HIWORD(lParam) & 0x100) == 0) { switch (MapVirtualKey(HIWORD(lParam) & 0xFF, 1)) diff --git a/src/x11_window.c b/src/x11_window.c index f5fba1b3..cb04a780 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -150,7 +150,7 @@ static GLboolean createWindow(_GLFWwindow* window, if (!window->x11.handle) { // TODO: Handle all the various error codes here and translate them - // to GLFW errors + // to GLFW errors _glfwInputError(GLFW_PLATFORM_ERROR, "X11: Failed to create window"); return GL_FALSE;