mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-28 05:52:38 +00:00
VideoCommon: don't do pointer copies during graphics mod callback iteration
This commit is contained in:
parent
f63e4aef0e
commit
431adad91a
3 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue