diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2015-12-23 03:34:31 +0100 |
|---|---|---|
| committer | Markus Wick <degasus@users.noreply.github.com> | 2015-12-23 03:34:31 +0100 |
| commit | 81f379b4093a1e425c5c67ddc11034ffd84d5b2e (patch) | |
| tree | b01710ce88d5401330459644ab064c57c1bb7033 /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | 3cf16f85738bbcff0a5c4027f26adf30f548bb59 (diff) | |
| parent | 8371c428cd1c3646776743f8da4bdf8c827ed487 (diff) | |
Merge pull request #3384 from lioncash/vertexloader
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) |
