Commit fee03501 by Corentin Wallez

Move comments next to their code block in FunctionsGL

BUG=angleproject:892 Change-Id: I7b47e26c81dc91900b17a2062bef0ee10c3290aa Reviewed-on: https://chromium-review.googlesource.com/269209Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 570dae9e
...@@ -21,19 +21,19 @@ static void GetGLVersion(PFNGLGETSTRINGPROC getStringFunction, GLuint *outMajorV ...@@ -21,19 +21,19 @@ static void GetGLVersion(PFNGLGETSTRINGPROC getStringFunction, GLuint *outMajorV
const std::string version = reinterpret_cast<const char*>(getStringFunction(GL_VERSION)); const std::string version = reinterpret_cast<const char*>(getStringFunction(GL_VERSION));
if (version.find("OpenGL ES") == std::string::npos) if (version.find("OpenGL ES") == std::string::npos)
{ {
// ES spec states that the GL_VERSION string will be in the following format: // OpenGL spec states the GL_VERSION string will be in the following format:
// "OpenGL ES N.M vendor-specific information" // <version number><space><vendor-specific information>
// The version number is either of the form major number.minor number or major
// number.minor number.release number, where the numbers all have one or more
// digits
*outIsES = false; *outIsES = false;
*outMajorVersion = version[0] - '0'; *outMajorVersion = version[0] - '0';
*outMinorVersion = version[2] - '0'; *outMinorVersion = version[2] - '0';
} }
else else
{ {
// OpenGL spec states the GL_VERSION string will be in the following format: // ES spec states that the GL_VERSION string will be in the following format:
// <version number><space><vendor-specific information> // "OpenGL ES N.M vendor-specific information"
// The version number is either of the form major number.minor number or major
// number.minor number.release number, where the numbers all have one or more
// digits
*outIsES = true; *outIsES = true;
*outMajorVersion = version[10] - '0'; *outMajorVersion = version[10] - '0';
*outMinorVersion = version[12] - '0'; *outMinorVersion = version[12] - '0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment