diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2017-02-18 12:40:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-18 12:40:00 +0100 |
| commit | 6acad279197d3b768737ca701e77439becc13681 (patch) | |
| tree | 0e8fba3f619783768617577df98227854f512306 /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | 5814d23fd9bfc0e2bcfb109d5f74763de8ae9b0c (diff) | |
| parent | 1fa81f24d3b24f8b47dfa58040f57bbeb7407c30 (diff) | |
Merge pull request #4927 from lioncash/unique-ptr
VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptr
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp index 7f8c79c77d..c7a2f46bab 100644 --- a/Source/Core/VideoCommon/VertexLoaderManager.cpp +++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp @@ -161,7 +161,7 @@ static VertexLoaderBase* RefreshLoader(int vtx_attr_group, bool preprocess = fal std::unique_ptr<NativeVertexFormat>& native = s_native_vertex_map[format]; if (!native) { - native.reset(g_vertex_manager->CreateNativeVertexFormat(format)); + native = g_vertex_manager->CreateNativeVertexFormat(format); } loader->m_native_vertex_format = native.get(); } |
