[osg-users] Texture Caching Problem with 3.6.3/4
Greg D
g.danaha at networkharbor.com
Mon Dec 9 11:57:27 PST 2019
My quick fix is to clear the cache on the first render (and call clear
thereafter). OpenFlight files open and render fine now. Is this a safe
fix?
void ViewerBase::frame(double simulationTime)
{
if (_done) return;
//
OSG_NOTICE<<std::endl<<"CompositeViewer::frame()"<<std::endl<<std::endl;
if (_firstFrame)
{
viewerInit();
if (!isRealized())
{
realize();
}
_firstFrame = false;
}
advance(simulationTime);
eventTraversal();
updateTraversal();
renderingTraversals();
osgDB::Registry::instance()->clearObjectCache(); // ADDED TO CLEAR CACHE
AFTER RENDER SINCE IT BECOMES CORRUPTED
}
--
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/8a2ea36c-dee7-4600-88a1-cdcdc1b4da4b%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20191209/1d8a72d2/attachment.html>
More information about the osg-users
mailing list