mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Add environment variable for disabling IncrementalCompileOperation
This commit is contained in:
parent
c4a89065a2
commit
f10edb71cc
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <stdexcept>
|
||||
#include <limits>
|
||||
#include <cstdlib>
|
||||
|
||||
#include <osg/Light>
|
||||
#include <osg/LightModel>
|
||||
|
@ -202,6 +203,7 @@ namespace MWRender
|
|||
|
||||
mObjects.reset(new Objects(mResourceSystem, sceneRoot, mUnrefQueue.get()));
|
||||
|
||||
if (getenv("OPENMW_DONT_PRECOMPILE") == NULL)
|
||||
mViewer->setIncrementalCompileOperation(new osgUtil::IncrementalCompileOperation);
|
||||
|
||||
mResourceSystem->getSceneManager()->setIncrementalCompileOperation(mViewer->getIncrementalCompileOperation());
|
||||
|
|
Loading…
Reference in a new issue