My solution thus far has been to call glGetString in the same function after my call to osg::GL2Extensions::Get, since the OpenGL context appears to be valid at that time - indeed the glGetString call is made internally by the GLExtensions stuff at that time.
It just seems like the renderer string should be exposed by the extensions object and it's not. From: [email protected] [mailto:[email protected]] On Behalf Of Gianluca Natale Sent: 15 January 2013 10:54 To: OpenSceneGraph Users Subject: [osg-users] R: GL_RENDERER string Out of OSG/Qt, I think you should: 1) Create a very simple rendering context (associated to the window created by your application); 2) Make that rendering context as the current one; 3) Call glGetString(GL_RENDERER, ...); Steps 1 and 2 are required, since all gl calls need a current rendering context to work with. About steps 1 and 2, you should look at how OSG create the rendering context. Da: [email protected]<mailto:[email protected]> [mailto:[email protected]] Per conto di Alistair Baxter Inviato: martedì 15 gennaio 2013 10:47 A: [email protected]<mailto:[email protected]> Oggetto: [osg-users] GL_RENDERER string I'm wanting to get the GL_RENDERER string out of my OpenSceneGraph / Qt application for debug purposes, and potentially for showing to users for technical support purposes. I can get the likes of GL and GLSL version from the osg::GL2Extensions object, and I can see the renderer string being queries in the source code, but I'm having difficulty figuring out how to get it out.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

