summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderManager.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@gmail.com>2015-01-18 19:48:14 -0600
committerRyan Houdek <Sonicadvance1@gmail.com>2015-01-18 19:48:14 -0600
commit7e64869185d47a835d22016c232cef09a3a53615 (patch)
treed8f5d19bf319be9a25ae46917d6341b02a89d18c /Source/Core/VideoCommon/VertexLoaderManager.cpp
parent5357b9c95ff2458e3b8c3112e303924a0d460ce6 (diff)
parentd3f49097c5226dc9ff0dd2fa37dc4896a38d9448 (diff)
Merge pull request #1887 from Tilka/vertex_loader_jit
VertexLoader: rewrite x64 JIT
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderManager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp
index b95e286c1e..786cb45a96 100644
--- a/Source/Core/VideoCommon/VertexLoaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp
@@ -121,11 +121,10 @@ static VertexLoaderBase* RefreshLoader(int vtx_attr_group, bool preprocess = fal
{
// search for a cached native vertex format
const PortableVertexDeclaration& format = loader->m_native_vtx_decl;
- auto& native = s_native_vertex_map[format];
+ std::unique_ptr<NativeVertexFormat>& native = s_native_vertex_map[format];
if (!native)
{
- auto raw_pointer = g_vertex_manager->CreateNativeVertexFormat();
- native = std::unique_ptr<NativeVertexFormat>(raw_pointer);
+ native.reset(g_vertex_manager->CreateNativeVertexFormat());
native->Initialize(format);
native->m_components = loader->m_native_components;
}