summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexManagerBase.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2023-07-02 13:58:07 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2023-07-02 13:58:07 -0500
commita2ad3ca6f72b15e89ccc2f52ba6b17fe62f78202 (patch)
tree2294357bad15d2349dd946c8d1960c1aa5f608fb /Source/Core/VideoCommon/VertexManagerBase.cpp
parent6d7bf60071446e3ed0fc8fa77e1149ccb73d85b9 (diff)
VideoCommon: don't do pointer copies during graphics mod callback iteration
Diffstat (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexManagerBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexManagerBase.cpp b/Source/Core/VideoCommon/VertexManagerBase.cpp
index 768ac82fe7..0b184e1da9 100644
--- a/Source/Core/VideoCommon/VertexManagerBase.cpp
+++ b/Source/Core/VideoCommon/VertexManagerBase.cpp
@@ -566,7 +566,7 @@ void VertexManagerBase::Flush()
{
bool skip = false;
GraphicsModActionData::DrawStarted draw_started{&skip};
- for (const auto action : g_graphics_mod_manager->GetDrawStartedActions(texture_name))
+ for (const auto& action : g_graphics_mod_manager->GetDrawStartedActions(texture_name))
{
action->OnDrawStarted(&draw_started);
}