summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWVertexLoader.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2015-12-23 03:34:31 +0100
committerMarkus Wick <degasus@users.noreply.github.com>2015-12-23 03:34:31 +0100
commit81f379b4093a1e425c5c67ddc11034ffd84d5b2e (patch)
treeb01710ce88d5401330459644ab064c57c1bb7033 /Source/Core/VideoBackends/Software/SWVertexLoader.cpp
parent3cf16f85738bbcff0a5c4027f26adf30f548bb59 (diff)
parent8371c428cd1c3646776743f8da4bdf8c827ed487 (diff)
Merge pull request #3384 from lioncash/vertexloader
VertexLoaderBase: Get rid of explicit delete and new
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWVertexLoader.cpp')
-rw-r--r--Source/Core/VideoBackends/Software/SWVertexLoader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Software/SWVertexLoader.cpp b/Source/Core/VideoBackends/Software/SWVertexLoader.cpp
index 260c0b1d41..c42e797a67 100644
--- a/Source/Core/VideoBackends/Software/SWVertexLoader.cpp
+++ b/Source/Core/VideoBackends/Software/SWVertexLoader.cpp
@@ -44,8 +44,8 @@ void SWVertexLoader::SetFormat(u8 attributeIndex, u8 primitiveType)
if (!m_CurrentLoader)
{
- m_CurrentLoader = VertexLoaderBase::CreateVertexLoader(g_main_cp_state.vtx_desc, g_main_cp_state.vtx_attr[m_attributeIndex]);
- m_VertexLoaderMap[uid] = std::unique_ptr<VertexLoaderBase>(m_CurrentLoader);
+ m_VertexLoaderMap[uid] = VertexLoaderBase::CreateVertexLoader(g_main_cp_state.vtx_desc, g_main_cp_state.vtx_attr[m_attributeIndex]);
+ m_CurrentLoader = m_VertexLoaderMap[uid].get();
}
m_VertexSize = m_CurrentLoader->m_VertexSize;