Hi Sukender, You can only call getGLVersionNumber() or any releated OpenGL from a thread with a valid graphics context - there is nothing the OSG can do about this - it's a characteristic of OpenGL. The locale issue does change this.
Running osgviewer will call getGLVersionNumber() when it runs, so running it with the env var OSG_NOTIFY_LEVEL to DEBUG will output the results of all the extension checks, I'm not sure in the OpenGL version number is amongst these. osgviewer doesn't set the locale though.... So perhaps osgviewerWX would be a better base. Robert. On Mon, Nov 24, 2008 at 9:06 AM, Sukender <[EMAIL PROTECTED]> wrote: > Hi Robert, > > I get a crash in osg::getGLVersionNumber()... glGetString() returns a NULL > pointer. Something you already encountered ( > http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-July/014034.html > ). I can't answer your question then, sorry. (Or maybe you know how to avoid > this NULL pointer?) > > Sukender > PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ > >> [...] >> So... could users who's machine are set up for a locale that uses the >> command convention for decimal places please post what results they >> get for the OpenGL version string, and what the OSG parses this string >> to be (i.e. the result of osg::getGLVersionNumber()). >> >> Robert. >> _______________________________________________ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org