Moved GL2Extensions functionality into the include/osg/GLExtensions header and new GLExtensions object.
Moved the #defines into new include/osg/GLDefines Converted all GL2Extensions usage to GLExtensions usage git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14593 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
@@ -1102,7 +1102,7 @@ void StatsHandler::setUpScene(osgViewer::ViewerBase* viewer)
|
||||
if ((*citr)->getGraphicsContext())
|
||||
{
|
||||
const osg::State* state = (*citr)->getGraphicsContext()->getState();
|
||||
const osg::GL2Extensions* extensions = state->get<osg::GL2Extensions>();
|
||||
const osg::GLExtensions* extensions = state->get<osg::GLExtensions>();
|
||||
if (extensions &&
|
||||
(((extensions->isARBTimerQuerySupported && state->getTimestampBits() > 0)) || extensions->isTimerQuerySupported))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user