diff options
| author | Lioncash <mai.iam2048@gmail.com> | 2024-01-31 19:46:24 -0500 |
|---|---|---|
| committer | Lioncash <mai.iam2048@gmail.com> | 2024-02-01 23:04:40 -0500 |
| commit | 4f40bdf501882e7a22cafcfffe62e6c5b4daf875 (patch) | |
| tree | 54347241314c67c68d02b003661010400467a8af /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | ea95c82a01c531358645dfd30b9e832425a32304 (diff) | |
VertexLoaderManager: Use fill() in Init()
Same behavior, less code.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderManager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp index d4e4f57cba..5da66c273d 100644 --- a/Source/Core/VideoCommon/VertexLoaderManager.cpp +++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp @@ -64,10 +64,8 @@ bool g_needs_cp_xf_consistency_check; void Init() { MarkAllDirty(); - for (auto& map_entry : g_main_vertex_loaders) - map_entry = nullptr; - for (auto& map_entry : g_preprocess_vertex_loaders) - map_entry = nullptr; + g_main_vertex_loaders.fill(nullptr); + g_preprocess_vertex_loaders.fill(nullptr); SETSTAT(g_stats.num_vertex_loaders, 0); } |
