mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
Formatted todos and notes.
This commit is contained in:
parent
b9d4875f3e
commit
adbd52ba27
|
@ -425,7 +425,7 @@ GLboolean _glfwRefreshContextAttribs(void)
|
||||||
if (glfwExtensionSupported("GL_ARB_robustness"))
|
if (glfwExtensionSupported("GL_ARB_robustness"))
|
||||||
{
|
{
|
||||||
// NOTE: We avoid using the context flags for detection, as they are
|
// 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;
|
GLint strategy;
|
||||||
glGetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, &strategy);
|
glGetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, &strategy);
|
||||||
|
@ -442,7 +442,7 @@ GLboolean _glfwRefreshContextAttribs(void)
|
||||||
if (glfwExtensionSupported("GL_EXT_robustness"))
|
if (glfwExtensionSupported("GL_EXT_robustness"))
|
||||||
{
|
{
|
||||||
// NOTE: The values of these constants match those of the OpenGL ARB
|
// 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;
|
GLint strategy;
|
||||||
glGetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, &strategy);
|
glGetIntegerv(GL_RESET_NOTIFICATION_STRATEGY_ARB, &strategy);
|
||||||
|
|
|
@ -457,8 +457,8 @@ int _glfwCreateContext(_GLFWwindow* window,
|
||||||
if (wndconfig->glMajor != 1 || wndconfig->glMinor != 0)
|
if (wndconfig->glMajor != 1 || wndconfig->glMinor != 0)
|
||||||
{
|
{
|
||||||
// NOTE: Only request an explicitly versioned context when
|
// NOTE: Only request an explicitly versioned context when
|
||||||
// necessary, as explicitly requesting version 1.0 does not always
|
// necessary, as explicitly requesting version 1.0 does not
|
||||||
// return the highest available version
|
// always return the highest available version
|
||||||
|
|
||||||
setGLXattrib(GLX_CONTEXT_MAJOR_VERSION_ARB, wndconfig->glMajor);
|
setGLXattrib(GLX_CONTEXT_MAJOR_VERSION_ARB, wndconfig->glMajor);
|
||||||
setGLXattrib(GLX_CONTEXT_MINOR_VERSION_ARB, wndconfig->glMinor);
|
setGLXattrib(GLX_CONTEXT_MINOR_VERSION_ARB, wndconfig->glMinor);
|
||||||
|
|
|
@ -178,7 +178,7 @@ int _glfwCreateContext(_GLFWwindow* window,
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: All NSOpenGLPixelFormats on the relevant cards support sRGB
|
// 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);
|
ADD_ATTR(0);
|
||||||
|
|
||||||
|
|
|
@ -145,7 +145,7 @@ static int translateKey(WPARAM wParam, LPARAM lParam)
|
||||||
{
|
{
|
||||||
// Check for numeric keypad keys
|
// Check for numeric keypad keys
|
||||||
// NOTE: This way we always force "NumLock = ON", which is intentional since
|
// 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)
|
if ((HIWORD(lParam) & 0x100) == 0)
|
||||||
{
|
{
|
||||||
switch (MapVirtualKey(HIWORD(lParam) & 0xFF, 1))
|
switch (MapVirtualKey(HIWORD(lParam) & 0xFF, 1))
|
||||||
|
|
|
@ -150,7 +150,7 @@ static GLboolean createWindow(_GLFWwindow* window,
|
||||||
if (!window->x11.handle)
|
if (!window->x11.handle)
|
||||||
{
|
{
|
||||||
// TODO: Handle all the various error codes here and translate them
|
// 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");
|
_glfwInputError(GLFW_PLATFORM_ERROR, "X11: Failed to create window");
|
||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user