I'll look into it a little more deep. But I think that i made the mistake
because the string that appeared to me was always this way
[vendor][space][number] and [vendor][space][GLSL][space][number] So maybe it
would be safer to change the function to recover only a double from the
string with a function that were not so agressive and even if it find some
non digit just skip it and start getting double when he finds a number until
a secon dot or a space (I don't think anyone would need any more than 4.2,
4.1...

2011/5/19 PC John <[email protected]>

> tr leads to the conversion until first non-number character is
> found, e.g. "4.1.10524 Compatibility Profile Context" is converted to
> 4.110524f
> . Tested on MSVC 2005 Radeon/GeForce, and Linux Radeon.
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to