mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-22 10:19:01 +00:00
Merge pull request #4927 from lioncash/unique-ptr
VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptr
This commit is contained in:
commit
6acad27919
15 changed files with 36 additions and 21 deletions
|
@ -161,7 +161,7 @@ static VertexLoaderBase* RefreshLoader(int vtx_attr_group, bool preprocess = fal
|
|||
std::unique_ptr<NativeVertexFormat>& native = s_native_vertex_map[format];
|
||||
if (!native)
|
||||
{
|
||||
native.reset(g_vertex_manager->CreateNativeVertexFormat(format));
|
||||
native = g_vertex_manager->CreateNativeVertexFormat(format);
|
||||
}
|
||||
loader->m_native_vertex_format = native.get();
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ public:
|
|||
|
||||
void Flush();
|
||||
|
||||
virtual NativeVertexFormat*
|
||||
virtual std::unique_ptr<NativeVertexFormat>
|
||||
CreateNativeVertexFormat(const PortableVertexDeclaration& vtx_decl) = 0;
|
||||
|
||||
void DoState(PointerWrap& p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue