diff options
| author | degasus <wickmarkus@web.de> | 2015-11-21 10:32:07 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2015-11-24 22:48:49 +0100 |
| commit | fc00598785fc02393864dd3521056d70086ee4b7 (patch) | |
| tree | e058656173b1eaf7e7d13709c3cc024afb435dd8 /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | df799dd12466a319c5616027980db0dbcadaa7de (diff) | |
NativeVertexFormat: Inline Initialize in contructor
They were only called at once, so no need to seperate them.
This also removes the only dereference of the NativeVertexFormat in VideoCommon, so backends may just return nullptr.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp index 50f50cb78e..25c4c6adb0 100644 --- a/Source/Core/VideoCommon/VertexLoaderManager.cpp +++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp @@ -152,8 +152,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()); - native->Initialize(format); + native.reset(g_vertex_manager->CreateNativeVertexFormat(format)); } loader->m_native_vertex_format = native.get(); } |
