summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Null/VertexManager.cpp
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2017-02-18 12:40:00 +0100
committerGitHub <noreply@github.com>2017-02-18 12:40:00 +0100
commit6acad279197d3b768737ca701e77439becc13681 (patch)
tree0e8fba3f619783768617577df98227854f512306 /Source/Core/VideoBackends/Null/VertexManager.cpp
parent5814d23fd9bfc0e2bcfb109d5f74763de8ae9b0c (diff)
parent1fa81f24d3b24f8b47dfa58040f57bbeb7407c30 (diff)
Merge pull request #4927 from lioncash/unique-ptr
VertexManagerBase: Make CreateNativeVertexFormat return a unique_ptr
Diffstat (limited to 'Source/Core/VideoBackends/Null/VertexManager.cpp')
-rw-r--r--Source/Core/VideoBackends/Null/VertexManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/Null/VertexManager.cpp b/Source/Core/VideoBackends/Null/VertexManager.cpp
index c615bc468b..be2a8f0af5 100644
--- a/Source/Core/VideoBackends/Null/VertexManager.cpp
+++ b/Source/Core/VideoBackends/Null/VertexManager.cpp
@@ -19,10 +19,10 @@ public:
void SetupVertexPointers() override {}
};
-NativeVertexFormat*
+std::unique_ptr<NativeVertexFormat>
VertexManager::CreateNativeVertexFormat(const PortableVertexDeclaration& vtx_decl)
{
- return new NullNativeVertexFormat;
+ return std::make_unique<NullNativeVertexFormat>();
}
VertexManager::VertexManager() : m_local_v_buffer(MAXVBUFFERSIZE), m_local_i_buffer(MAXIBUFFERSIZE)