mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-08-26 12:50:44 -05:00
Merge pull request #14606 from cristian64/range_loop_construct_warning
Core: Address `-Wrange-loop-construct` warning.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user