- string gl_ver=reinterpret_cast<const char *>(glGetString(GL_VERSION));
- vector<string> parts=split(gl_ver.substr(0, gl_ver.find(' ')), '.');
- version.major=lexical_cast<unsigned>(parts[0]);
- version.minor=lexical_cast<unsigned>(parts[1]);
+ string gl_ver = reinterpret_cast<const char *>(glGetString(GL_VERSION));
+ vector<string> parts = split(gl_ver.substr(0, gl_ver.find(' ')), '.');
+ version.major = lexical_cast<unsigned>(parts[0]);
+ version.minor = lexical_cast<unsigned>(parts[1]);