mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 18:15:10 +00:00
Improve glfwinfo extension listing
This commit is contained in:
parent
1e452d5fca
commit
c2efe87cff
@ -159,23 +159,27 @@ static void list_extensions(int api, int major, int minor)
|
|||||||
glGetIntegerv(GL_NUM_EXTENSIONS, &count);
|
glGetIntegerv(GL_NUM_EXTENSIONS, &count);
|
||||||
|
|
||||||
for (i = 0; i < count; i++)
|
for (i = 0; i < count; i++)
|
||||||
puts((const char*) glGetStringi(GL_EXTENSIONS, i));
|
printf(" %s\n", (const char*) glGetStringi(GL_EXTENSIONS, i));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
extensions = glGetString(GL_EXTENSIONS);
|
extensions = glGetString(GL_EXTENSIONS);
|
||||||
while (*extensions != '\0')
|
while (*extensions != '\0')
|
||||||
{
|
{
|
||||||
if (*extensions == ' ')
|
putchar(' ');
|
||||||
putchar('\n');
|
|
||||||
else
|
|
||||||
putchar(*extensions);
|
|
||||||
|
|
||||||
|
while (*extensions != '\0' && *extensions != ' ')
|
||||||
|
{
|
||||||
|
putchar(*extensions);
|
||||||
extensions++;
|
extensions++;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
while (*extensions == ' ')
|
||||||
|
extensions++;
|
||||||
|
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static int valid_version(void)
|
static int valid_version(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user