mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05:00
Made flag parsing output more consistent.
This commit is contained in:
parent
6c86149bad
commit
b00064902d
|
@ -252,12 +252,18 @@ int main(int argc, char** argv)
|
||||||
printf("OpenGL context flags (0x%08x):", flags);
|
printf("OpenGL context flags (0x%08x):", flags);
|
||||||
|
|
||||||
if (flags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT)
|
if (flags & GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT)
|
||||||
puts(" forward-compatible");
|
printf(" forward-compatible");
|
||||||
else
|
if (flags & 0)
|
||||||
puts(" none");
|
printf(" debug");
|
||||||
|
putchar('\n');
|
||||||
|
|
||||||
printf("OpenGL forward-compatible flag parsed by GLFW: %s\n",
|
printf("OpenGL flags parsed by GLFW:");
|
||||||
glfwGetWindowParam(window, GLFW_OPENGL_FORWARD_COMPAT) ? "true" : "false");
|
|
||||||
|
if (glfwGetWindowParam(window, GLFW_OPENGL_FORWARD_COMPAT))
|
||||||
|
printf(" forward-compatible");
|
||||||
|
if (glfwGetWindowParam(window, GLFW_OPENGL_DEBUG_CONTEXT))
|
||||||
|
printf(" debug");
|
||||||
|
putchar('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (major > 3 || (major == 3 && minor >= 2))
|
if (major > 3 || (major == 3 && minor >= 2))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user