Added workaround for NVidia driver bug into SceneView::init() to prevent the extensions

string being initialized within a display list.
This commit is contained in:
Robert Osfield
2006-10-06 06:58:04 +00:00
parent d40e12a27b
commit 2f5b7c2e6a

View File

@@ -15,6 +15,7 @@
#include <osgUtil/GLObjectsVisitor>
#include <osg/Timer>
#include <osg/GLExtensions>
#include <osg/Notify>
#include <osg/Texture>
#include <osg/VertexProgram>
@@ -239,6 +240,10 @@ void SceneView::init()
_initCalled = true;
// force the initialization of the OpenGL extension string
// to try and work around a Windows NVidia driver bug circa Oct 2006.
osg::isGLExtensionSupported(_renderInfo.getState()->getContextID(),"");
if (_camera.valid() && _initVisitor.valid())
{
_initVisitor->reset();