Hi Jorge,
thanks for developing Android platform.
Attaching examples of strings on standard computers I have around.
GL_VENDOR:
         AMD: 4.1.10665 Compatibility Profile Context
         NVIDIA (Windows): 4.1.0
         NVIDIA (Linux): 2.1.2 NVIDIA 169.12
         Mesa: 2.1 Mesa 7.5.1
         ATI (old): 2.1.7412 Release
         Intel: 1.4.0 - Build 7.14.10.4926

and of GL_SHADING_LANGUAGE_VERSION:
         AMD: 4.10
         NVIDIA: 4.10 NVIDIA via Cg compiler
         Mesa: 1.20

John

> ------------ Original message ------------
> From:  Jorge Izquierdo Ciges <[email protected]>
> Subject:  Re: [osg-submissions] Android small patches
> Date:  19. 5. 2011  18:08:28
> ----------------------------------------
> 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