diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-12-22 19:59:32 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-12-22 20:09:54 -0500 |
| commit | 8371c428cd1c3646776743f8da4bdf8c827ed487 (patch) | |
| tree | b01710ce88d5401330459644ab064c57c1bb7033 /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | 3cf16f85738bbcff0a5c4027f26adf30f548bb59 (diff) | |
VertexLoaderBase: Get rid of explicit delete and new
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp index 25c4c6adb0..baf04ba52a 100644 --- a/Source/Core/VideoCommon/VertexLoaderManager.cpp +++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp @@ -141,8 +141,8 @@ static VertexLoaderBase* RefreshLoader(int vtx_attr_group, bool preprocess = fal } else { - loader = VertexLoaderBase::CreateVertexLoader(state->vtx_desc, state->vtx_attr[vtx_attr_group]); - s_vertex_loader_map[uid] = std::unique_ptr<VertexLoaderBase>(loader); + s_vertex_loader_map[uid] = VertexLoaderBase::CreateVertexLoader(state->vtx_desc, state->vtx_attr[vtx_attr_group]); + loader = s_vertex_loader_map[uid].get(); INCSTAT(stats.numVertexLoaders); } if (check_for_native_format) |
