diff options
| author | nodchip <nodchip@gmail.com> | 2010-03-06 10:07:37 +0000 |
|---|---|---|
| committer | nodchip <nodchip@gmail.com> | 2010-03-06 10:07:37 +0000 |
| commit | 2dabcb881cff02d082f09096ddbd5ee4342a68b8 (patch) | |
| tree | ec0be9d6e2880089f2a88cba4a3dd22ca065c5a1 /Source/Core/VideoCommon/Src/VertexLoaderManager.cpp | |
| parent | 6376645b6925bef5ee015452dcb5d2b1a72247cc (diff) | |
Fixed the crazy code in r5161.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5163 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Src/VertexLoaderManager.cpp | 12 |
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(); } }; } |
