Procházet zdrojové kódy

Shader JIT: ifdef out reference to ifdef'd out shader_map

shader_map was only defined on x86 architectures, but was cleared on shutdown
with no ifdef protection. Ifdef this out so non-x86 architectures can be built.
archshift před 11 roky
rodič
revize
dd0e1061ef
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/video_core/shader/shader.cpp

+ 2 - 0
src/video_core/shader/shader.cpp

@@ -52,7 +52,9 @@ void Setup(UnitState<false>& state) {
 }
 }
 
 
 void Shutdown() {
 void Shutdown() {
+#ifdef ARCHITECTURE_x86_64
     shader_map.clear();
     shader_map.clear();
+#endif // ARCHITECTURE_x86_64
 }
 }
 
 
 static Common::Profiling::TimingCategory shader_category("Vertex Shader");
 static Common::Profiling::TimingCategory shader_category("Vertex Shader");