Add environment variable for disabling IncrementalCompileOperation

pull/151/head
scrawl 8 years ago
parent c4a89065a2
commit f10edb71cc

@ -2,6 +2,7 @@
#include <stdexcept>
#include <limits>
#include <cstdlib>
#include <osg/Light>
#include <osg/LightModel>
@ -202,7 +203,8 @@ namespace MWRender
mObjects.reset(new Objects(mResourceSystem, sceneRoot, mUnrefQueue.get()));
mViewer->setIncrementalCompileOperation(new osgUtil::IncrementalCompileOperation);
if (getenv("OPENMW_DONT_PRECOMPILE") == NULL)
mViewer->setIncrementalCompileOperation(new osgUtil::IncrementalCompileOperation);
mResourceSystem->getSceneManager()->setIncrementalCompileOperation(mViewer->getIncrementalCompileOperation());

Loading…
Cancel
Save