From f10edb71cc201bd2a499fd7dc785beddc7f5a7b6 Mon Sep 17 00:00:00 2001 From: scrawl Date: Wed, 15 Feb 2017 20:57:12 +0100 Subject: [PATCH] Add environment variable for disabling IncrementalCompileOperation --- apps/openmw/mwrender/renderingmanager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwrender/renderingmanager.cpp b/apps/openmw/mwrender/renderingmanager.cpp index 551e20888..33bb84345 100644 --- a/apps/openmw/mwrender/renderingmanager.cpp +++ b/apps/openmw/mwrender/renderingmanager.cpp @@ -2,6 +2,7 @@ #include #include +#include #include #include @@ -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());