This will in most case always return NULL in OSG 2.x and above You Have to do OpenGL calls where in the Processes/Thread that has the OpenGL context which in OSG is the Draw Processes, so you have to do anything with OpenGL in Draw Call callbacks
You cannot do OpenGL calls in the App Process/Thread as your doing below ( UNLESS you have OSG in Single Thread MODE ) __________________________________________________________ Gordon Tomlinson [EMAIL PROTECTED] IM: [EMAIL PROTECTED] www.vis-sim.com www.gordontomlinson.com __________________________________________________________ -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sherman wilcox Sent: Wednesday, July 30, 2008 8:29 PM To: OpenSceneGraph Users Subject: [osg-users] glGetString returning NULL Running latest version of OSG in SVN, calling glGetString(...) from main render loop (single threaded osgViewer). Like this: while(viewer.done() == false) { viewer.frame(); char* extensions = (char*)glGetString(GL_EXTENSIONS); } extensions is always NULL. Am I doing something wrong here? Could someone else test this? _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

