VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptr

Much safer as opposed to just returning raw allocated memory.
This commit is contained in:
Lioncash committed 2017-02-18 03:16:24 -05:00
1 parent 82734fffaa
commit 1fa81f24d3
15 files changed
+36 -21

No files matched your search

@@ -17,7 +17,9 @@ public:
VertexManager();
~VertexManager();
NativeVertexFormat* CreateNativeVertexFormat(const PortableVertexDeclaration& vtx_decl) override;
std::unique_ptr<NativeVertexFormat>
CreateNativeVertexFormat(const PortableVertexDeclaration& vtx_decl) override;
void CreateDeviceObjects() override;
void DestroyDeviceObjects() override;