diff options
| author | Tillmann Karras <tilkax@gmail.com> | 2015-01-08 10:44:16 +0100 |
|---|---|---|
| committer | Tillmann Karras <tilkax@gmail.com> | 2015-01-18 12:59:33 +0100 |
| commit | 20bc18cd5d86b2e48a6ee6281d9e0577c797a0df (patch) | |
| tree | 51439c6f95ccbfe0d9435e7de7fef7426b1d11fc /Source/Core/VideoCommon | |
| parent | b0df4b08ec4638c3b55b6a620fa19d755168c07b (diff) | |
VertexLoaderManager: make it nicer to read
Diffstat (limited to 'Source/Core/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderManager.cpp | 5 |
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; } |
