[osg-users] glGetString returning NULL

Adrian Egli OpenSceneGraph (3D) 3dhelp at gmail.com
Wed Jul 30 23:20:19 PDT 2008


Hi,
i had similar problem, the graphic context was no longer current/ available.

if you need the extensions: have a look at osg::GL2Extensions class or
osg::GLExtensions class,
work around: custom drawable object, in the drawimplementation method add
the glGetString,..
/adrian

2008/7/31 sherman wilcox <wilcox.sherman at gmail.com>

> 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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
********************************************
Adrian Egli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080731/060e27db/attachment-0003.htm>


More information about the osg-users mailing list