VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptr

Much safer as opposed to just returning raw allocated memory.
This commit is contained in:
Lioncash
2017-02-18 03:14:30 -05:00
parent 82734fffaa
commit 1fa81f24d3
15 changed files with 36 additions and 21 deletions

View File

@ -4,6 +4,7 @@
#pragma once
#include <memory>
#include <vector>
#include "Common/CommonTypes.h"
@ -19,7 +20,8 @@ public:
SWVertexLoader();
~SWVertexLoader();
NativeVertexFormat* CreateNativeVertexFormat(const PortableVertexDeclaration& vdec) override;
std::unique_ptr<NativeVertexFormat>
CreateNativeVertexFormat(const PortableVertexDeclaration& vdec) override;
protected:
void ResetBuffer(u32 stride) override;