I am using glGetString(GL_VERSION) to get system’s openGL version so that i can implement sum new features…heres the code…
std::string ver((const char*) glGetString( GL_VERSION ));
assert( !ver.empty() );
std::istringstream verStream( ver );
int major, minor;
char dummySep;
verStream >> major >> dummySep >> minor;
But i am gettn a runtime error…
The application has requested the runtime to terminate in an unusual manner.Contact your application’s support team for more informations.
SO WHERES WRONG N THIS CODE…???