summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Software/SWVertexLoader.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-12-22 19:59:32 -0500
committerLioncash <mathew1800@gmail.com>2015-12-22 20:09:54 -0500
commit8371c428cd1c3646776743f8da4bdf8c827ed487 (patch)
treeb01710ce88d5401330459644ab064c57c1bb7033 /Source/Core/VideoBackends/Software/SWVertexLoader.cpp
parent3cf16f85738bbcff0a5c4027f26adf30f548bb59 (diff)
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;