1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00

Formatting.

This commit is contained in:
Camilla Berglund 2012-08-01 01:05:57 +02:00
parent 76bd8b79b6
commit 0f1ab5317f

View File

@ -45,10 +45,10 @@ static GLboolean parseGLVersion(int* major, int* minor, int* rev)
const char* version; const char* version;
const char* prefixes[] = const char* prefixes[] =
{ {
"OpenGL ES-CM ", "OpenGL ES-CM ",
"OpenGL ES-CL ", "OpenGL ES-CL ",
"OpenGL ES ", "OpenGL ES ",
NULL NULL
}; };
version = (const char*) glGetString(GL_VERSION); version = (const char*) glGetString(GL_VERSION);
@ -61,13 +61,13 @@ static GLboolean parseGLVersion(int* major, int* minor, int* rev)
for (i = 0; prefixes[i]; i++) for (i = 0; prefixes[i]; i++)
{ {
const size_t length = strlen(prefixes[i]); const size_t length = strlen(prefixes[i]);
if (strncmp(version, prefixes[i], length) == 0) if (strncmp(version, prefixes[i], length) == 0)
{ {
version += length; version += length;
break; break;
} }
} }
if (!sscanf(version, "%d.%d.%d", &_major, &_minor, &_rev)) if (!sscanf(version, "%d.%d.%d", &_major, &_minor, &_rev))