summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexShaderManager.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2023-07-03 02:00:41 +0200
committerGitHub <noreply@github.com>2023-07-03 02:00:41 +0200
commitda1a3d364e2e2081e8d90778e9bb1d0d09d66c84 (patch)
tree2294357bad15d2349dd946c8d1960c1aa5f608fb /Source/Core/VideoCommon/VertexShaderManager.cpp
parent6d7bf60071446e3ed0fc8fa77e1149ccb73d85b9 (diff)
parenta2ad3ca6f72b15e89ccc2f52ba6b17fe62f78202 (diff)
Merge pull request #12023 from iwubcode/graphics_mod_action_copies
VideoCommon: don't do pointer copies during graphics mod callback iteration
Diffstat (limited to 'Source/Core/VideoCommon/VertexShaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexShaderManager.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/VertexShaderManager.cpp b/Source/Core/VideoCommon/VertexShaderManager.cpp
index 276b400ab3..41c06ad4ba 100644
--- a/Source/Core/VideoCommon/VertexShaderManager.cpp
+++ b/Source/Core/VideoCommon/VertexShaderManager.cpp
@@ -406,14 +406,14 @@ void VertexShaderManager::SetConstants(const std::vector<std::string>& textures)
std::vector<GraphicsModAction*> projection_actions;
if (g_ActiveConfig.bGraphicMods)
{
- for (const auto action : g_graphics_mod_manager->GetProjectionActions(xfmem.projection.type))
+ for (const auto& action : g_graphics_mod_manager->GetProjectionActions(xfmem.projection.type))
{
projection_actions.push_back(action);
}
for (const auto& texture : textures)
{
- for (const auto action :
+ for (const auto& action :
g_graphics_mod_manager->GetProjectionTextureActions(xfmem.projection.type, texture))
{
projection_actions.push_back(action);
@@ -430,7 +430,7 @@ void VertexShaderManager::SetConstants(const std::vector<std::string>& textures)
auto corrected_matrix = LoadProjectionMatrix();
GraphicsModActionData::Projection projection{&corrected_matrix};
- for (auto action : projection_actions)
+ for (const auto& action : projection_actions)
{
action->OnProjection(&projection);
}