From 36b2ddac2d6acbe9cb954528d3ede12578e4feeb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 14 Nov 2016 18:01:22 +0000 Subject: [PATCH] Added usage of osg::ConfigureBufferObjectsVisitor to correct for incoherent buffer oject set up due to the adhoc way that the OpenFlight plugin sets up osg::Geometry. --- src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp b/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp index 621401679..1308bd578 100644 --- a/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp +++ b/src/osgPlugins/OpenFlight/ReaderWriterFLT.cpp @@ -328,6 +328,12 @@ class FLTReaderWriter : public ReaderWriter } } + if (rr.getNode()) + { + osg::ConfigureBufferObjectsVisitor cbov; + rr.getNode()->accept(cbov); + } + // clear local cache. if (nestedExternalsLevel==0) flt::Registry::instance()->clearLocalCache();