summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexLoaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VertexLoaderManager.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp b/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp
index cdb4aa42a5..176e9ad0c7 100644
--- a/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp
+++ b/Source/Core/VideoCommon/Src/VertexLoaderManager.cpp
@@ -37,11 +37,17 @@ static int s_attr_dirty; // bitfield
static VertexLoader *g_VertexLoaders[8];
-#ifndef _MSC_VER
+#ifdef _MSC_VER
+namespace stdext {
+ inline size_t hash_value(const VertexLoaderUID& uid) {
+ return uid.GetHash();
+ }
+}
+#else
namespace __gnu_cxx {
template<> struct hash<VertexLoaderUID> {
- size_t operator()(const VertexLoaderUID& __x) const {
- return __x;
+ size_t operator()(const VertexLoaderUID& uid) const {
+ return uid.GetHash();
}
};
}