mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
VertexLoaderBase: Get rid of explicit delete and new
This commit is contained in:
parent
3cf16f8573
commit
8371c428cd
5 changed files with 24 additions and 24 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue