From Paul Martz, "Summary: GL3 deprecates "glGetString(GL_EXTENSIONS)". In GL3, individual extension strings are queried by looping over GL_NUM_EXTENSIONS and calling "glGetStringi(GL_EXTENSIONS,<index>)".
From Paul Martz, "Summary: GL3 deprecates "glGetString(GL_EXTENSIONS)". In GL3, individual extension strings are queried by looping over GL_NUM_EXTENSIONS and calling "glGetStringi(GL_EXTENSIONS,<index>)".

The fix is basically as follows:
 if( GL3 )
   Query indexed extension strings.
 else
   Query the old way.

The "else" branch is re-indented but otherwise shouldn't contain any changes."

From Robert Osfield, added #if !defined(OSG_GLES1_AVAILABLE) && !defined(OSG_GLES2_AVAILABLE) to new block to prevent it
being compiled under GLES where no glGetStringi exists.



openscenegraph/osg,scrawl/osg,artoolkit/osg,tomasthoresen/osg,tomasthoresen/osg,marchelbling/osg,jtorresfabra/osg,tomasthoresen/osg,scrawl/osg,openscenegraph/osg,scrawl/osg,scrawl/osg,artoolkit/osg,artoolkit/osg,openscenegraph/osg,artoolkit/osg,tomasthoresen/osg,jtorresfabra/osg,marchelbling/osg,jtorresfabra/osg,jtorresfabra/osg,marchelbling/osg,marchelbling/osg,openscenegraph/osg