1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Comment tweaks.

This commit is contained in:
Camilla Berglund 2011-03-07 13:58:02 +01:00
parent 596f56fe7b
commit cf7819df8d

View File

@ -206,7 +206,6 @@ void _glfwParseGLVersion(int* major, int* minor, int* rev)
const GLubyte* ptr;
const char* glesPrefix = "OpenGL ES ";
// Get OpenGL version string
version = glGetString(GL_VERSION);
if (!version)
return;
@ -219,7 +218,8 @@ void _glfwParseGLVersion(int* major, int* minor, int* rev)
version += strlen(glesPrefix);
}
// Parse string
// Parse version from string
ptr = version;
for (_major = 0; *ptr >= '0' && *ptr <= '9'; ptr++)
_major = 10 * _major + (*ptr - '0');
@ -238,7 +238,7 @@ void _glfwParseGLVersion(int* major, int* minor, int* rev)
}
}
// Return parsed values
// Store result
*major = _major;
*minor = _minor;
*rev = _rev;