summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarchshift <gh@archshift.com>2015-08-26 22:28:19 +0000
committerarchshift <gh@archshift.com>2015-08-26 22:28:19 +0000
commitdd0e1061efddc0d2dc9a8cca432fe74cf54c9133 (patch)
treebb6bafede9565e5bdc1e1649ce5e5e2858585139
parent4ad86a6f7889cba716d2a329d54cde09b250273c (diff)
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.
-rw-r--r--src/video_core/shader/shader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/shader/shader.cpp b/src/video_core/shader/shader.cpp
index be5588c00..f89117521 100644
--- a/src/video_core/shader/shader.cpp
+++ b/src/video_core/shader/shader.cpp
@@ -52,7 +52,9 @@ void Setup(UnitState<false>& state) {
}
void Shutdown() {
+#ifdef ARCHITECTURE_x86_64
shader_map.clear();
+#endif // ARCHITECTURE_x86_64
}
static Common::Profiling::TimingCategory shader_category("Vertex Shader");