From 2f5b7c2e6a24da992c77292dd01e76a0044ec45a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 6 Oct 2006 06:58:04 +0000 Subject: [PATCH] Added workaround for NVidia driver bug into SceneView::init() to prevent the extensions string being initialized within a display list. --- src/osgUtil/SceneView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/osgUtil/SceneView.cpp b/src/osgUtil/SceneView.cpp index c74c3d6ee..6becf999c 100644 --- a/src/osgUtil/SceneView.cpp +++ b/src/osgUtil/SceneView.cpp @@ -15,6 +15,7 @@ #include #include +#include #include #include #include @@ -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();