video_core/shader: Resolve instances of variable shadowing

Silences a few -Wshadow warnings.
This commit is contained in:
Lioncash 2019-10-23 21:26:07 -04:00
parent 273bcde6bc
commit 0a71f5d6f4
6 changed files with 12 additions and 11 deletions

View file

@ -144,8 +144,8 @@ u32 ShaderIR::DecodeImage(NodeBlock& bb, u32 pc) {
Image& ShaderIR::GetImage(Tegra::Shader::Image image, Tegra::Shader::ImageType type) {
const auto offset{static_cast<std::size_t>(image.index.Value())};
if (const auto image = TryUseExistingImage(offset, type)) {
return *image;
if (const auto existing_image = TryUseExistingImage(offset, type)) {
return *existing_image;
}
const std::size_t next_index{used_images.size()};