mirror of
https://github.com/glfw/glfw.git
synced 2024-11-12 17:51:48 +00:00
Comment tweaks.
This commit is contained in:
parent
596f56fe7b
commit
cf7819df8d
@ -206,7 +206,6 @@ void _glfwParseGLVersion(int* major, int* minor, int* rev)
|
|||||||
const GLubyte* ptr;
|
const GLubyte* ptr;
|
||||||
const char* glesPrefix = "OpenGL ES ";
|
const char* glesPrefix = "OpenGL ES ";
|
||||||
|
|
||||||
// Get OpenGL version string
|
|
||||||
version = glGetString(GL_VERSION);
|
version = glGetString(GL_VERSION);
|
||||||
if (!version)
|
if (!version)
|
||||||
return;
|
return;
|
||||||
@ -219,7 +218,8 @@ void _glfwParseGLVersion(int* major, int* minor, int* rev)
|
|||||||
version += strlen(glesPrefix);
|
version += strlen(glesPrefix);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Parse string
|
// Parse version from string
|
||||||
|
|
||||||
ptr = version;
|
ptr = version;
|
||||||
for (_major = 0; *ptr >= '0' && *ptr <= '9'; ptr++)
|
for (_major = 0; *ptr >= '0' && *ptr <= '9'; ptr++)
|
||||||
_major = 10 * _major + (*ptr - '0');
|
_major = 10 * _major + (*ptr - '0');
|
||||||
@ -238,7 +238,7 @@ void _glfwParseGLVersion(int* major, int* minor, int* rev)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return parsed values
|
// Store result
|
||||||
*major = _major;
|
*major = _major;
|
||||||
*minor = _minor;
|
*minor = _minor;
|
||||||
*rev = _rev;
|
*rev = _rev;
|
||||||
|
Loading…
Reference in New Issue
Block a user