From 8371c428cd1c3646776743f8da4bdf8c827ed487 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 22 Dec 2015 19:59:32 -0500 Subject: VertexLoaderBase: Get rid of explicit delete and new --- Source/Core/VideoBackends/Software/SWVertexLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoBackends/Software/SWVertexLoader.cpp') 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(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; -- cgit v1.2.3