summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2026-04-18 12:07:05 -0500
committerGitHub <noreply@github.com>2026-04-18 12:07:05 -0500
commit41261782043699ccd7e13479ebe27e72d9eec379 (patch)
tree69bad290e37369fcdd0badbbf25d3d86349425a3 /Source/Core/VideoCommon/TextureCacheBase.cpp
parent42175d4e75de1e31c44c734862da698703c92270 (diff)
parent6059045c59b9aca6232f0e2580582f5673e0e74a (diff)
Merge pull request #14606 from cristian64/range_loop_construct_warning
Core: Address `-Wrange-loop-construct` warning.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
-rw-r--r--Source/Core/VideoCommon/TextureCacheBase.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/TextureCacheBase.cpp b/Source/Core/VideoCommon/TextureCacheBase.cpp
index 6fc13c5fba..952e4dee67 100644
--- a/Source/Core/VideoCommon/TextureCacheBase.cpp
+++ b/Source/Core/VideoCommon/TextureCacheBase.cpp
@@ -3133,7 +3133,7 @@ void TextureCacheBase::ApplyMaterialToCacheEntry(const VideoCommon::MaterialReso
g_gfx->SetTexture(0, entry->texture.get());
g_gfx->SetSamplerState(0, RenderState::GetPointSamplerState());
- for (const auto texture : material_data->GetTextures())
+ for (const auto& texture : material_data->GetTextures())
{
g_gfx->SetTexture(texture.sampler_index, texture.texture);
g_gfx->SetSamplerState(texture.sampler_index, texture.sampler);