Skip to content

Commit

Permalink
Add environment variable for disabling IncrementalCompileOperation
Browse files Browse the repository at this point in the history
  • Loading branch information
scrawl committed Feb 15, 2017
1 parent c4a8906 commit f10edb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/openmw/mwrender/renderingmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#include <stdexcept>
#include <limits>
#include <cstdlib>

#include <osg/Light>
#include <osg/LightModel>
Expand Down Expand Up @@ -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());

Expand Down

0 comments on commit f10edb7

Please sign in to comment.