Converted OpenGL version number code to using osg::asciiToFloat to avoid issues with conversion using locale senstive atof function

This commit is contained in:
Robert Osfield
2008-11-24 13:19:01 +00:00
parent bf8c3cc07e
commit fccd05b290
4 changed files with 6 additions and 5 deletions

View File

@@ -1635,7 +1635,7 @@ void Texture::Extensions::setupGLExtensions(unsigned int contextID)
}
float glVersion = atof( (const char *)version );
float glVersion = asciiToFloat( (const char *)version );
const char* renderer = (const char*) glGetString(GL_RENDERER);
std::string rendererString(renderer ? renderer : "");