summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2014-12-12 08:53:48 +0100
committerdegasus <wickmarkus@web.de>2014-12-21 13:47:43 +0100
commit6e3b2712d2fafcd8fae7ba3653207980685708e6 (patch)
tree75fa859e8716031e02cbf8a6ee6c2cce4250df1f /Source/Core/VideoCommon/VertexLoader.cpp
parent12817989926f8c4e7efe2da3880d1b182fa1a602 (diff)
VideoCommon: Move NativeVertexFormat cache to VertexLoaderManager
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoader.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/Source/Core/VideoCommon/VertexLoader.cpp b/Source/Core/VideoCommon/VertexLoader.cpp
index 2dea025d96..ddf5097986 100644
--- a/Source/Core/VideoCommon/VertexLoader.cpp
+++ b/Source/Core/VideoCommon/VertexLoader.cpp
@@ -591,22 +591,3 @@ void VertexLoader::AppendToString(std::string *dest) const
}
dest->append(StringFromFormat(" - %i v\n", m_numLoadedVertices));
}
-
-NativeVertexFormat* VertexLoader::GetNativeVertexFormat()
-{
- if (m_native_vertex_format)
- return m_native_vertex_format;
- auto& native = s_native_vertex_map[m_native_vtx_decl];
- if (!native)
- {
- auto raw_pointer = g_vertex_manager->CreateNativeVertexFormat();
- native = std::unique_ptr<NativeVertexFormat>(raw_pointer);
- native->Initialize(m_native_vtx_decl);
- native->m_components = m_native_components;
- }
- m_native_vertex_format = native.get();
- return native.get();
-
-}
-
-std::unordered_map<PortableVertexDeclaration, std::unique_ptr<NativeVertexFormat>> VertexLoader::s_native_vertex_map;