Merge pull request #14606 from cristian64/range_loop_construct_warning

Core: Address `-Wrange-loop-construct` warning.
This commit is contained in:
Jordan Woyak
2026-04-18 12:07:05 -05:00
committed by GitHub

View File

@@ -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);