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