Merge pull request #14606 from cristian64/range_loop_construct_warning
Core: Address `-Wrange-loop-construct` warning.
This commit is contained in:
1 file changed
+1
-1
@@ -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