From 72e1737aa69446767983bdece9de711b9ee30f47 Mon Sep 17 00:00:00 2001
From: James Turner <zakalawe@mac.com>
Date: Thu, 13 Sep 2018 23:52:52 +0200
Subject: [PATCH] Reset: wipe the Effect UniformCache

---
 src/Main/fg_init.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx
index c618cec9b..cba54d480 100644
--- a/src/Main/fg_init.cxx
+++ b/src/Main/fg_init.cxx
@@ -1187,8 +1187,8 @@ void fgStartNewReset()
     
     simgear::clearEffectCache();
     simgear::SGModelLib::resetPropertyRoot();
-        
     simgear::GlobalParticleCallback::setSwitch(NULL);
+    simgear::UniformFactory::instance()->reset();
     
     globals->resetPropertyRoot();
     // otherwise channels are duplicated