From a2ad3ca6f72b15e89ccc2f52ba6b17fe62f78202 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sun, 2 Jul 2023 13:58:07 -0500 Subject: VideoCommon: don't do pointer copies during graphics mod callback iteration --- Source/Core/VideoCommon/VertexManagerBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VertexManagerBase.cpp') 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); } -- cgit v1.2.3