RetroPie-Setup/scriptmodules/emulators/mupen64plus/0001-GLideN64-use-emplace.patch
Conn O'Griofa 340139a2f4 mupen64plus: workaround GLideN64 shader cache crash
Crash seems reproducible only on gcc 6.3.0 via Rasbian stretch, but the
workaround should not negatively impact other systems.

See: https://github.com/gonetz/GLideN64/issues/1665
2018-03-16 13:01:12 +00:00

13 lines
438 B
Diff

diff --git a/GLideN64/src/Combiner.cpp b/GLideN64/src/Combiner.cpp
index f724cc0..0141f6c 100644
--- a/GLideN64/src/Combiner.cpp
+++ b/GLideN64/src/Combiner.cpp
@@ -295,7 +295,7 @@ void CombinerInfo::setCombine(u64 _mux )
} else {
m_pCurrent = Combiner_Compile(key);
m_pCurrent->update(true);
- m_combiners[m_pCurrent->getKey()] = m_pCurrent;
+ m_combiners.emplace(m_pCurrent->getKey(), m_pCurrent);
}
m_bChanged = true;
}