VERY experimental Nintendo Switch 2 emulator
C++
decoder/texture: Eliminate narrowing conversion in GetTldCode()
Lioncash8f587c15ac11
diff --git a/src/video_core/shader/decode/texture.cpp b/src/video_core/shader/decode/texture.cppindex 29ebf65bac..a03b50e39b 100644--- a/src/video_core/shader/decode/texture.cpp+++ b/src/video_core/shader/decode/texture.cpp@@ -763,7 +763,7 @@ Node4 ShaderIR::GetTld4Code(Instruction instr, TextureType texture_type, bool deNode4 ShaderIR::GetTldCode(Tegra::Shader::Instruction instr) {const auto texture_type{instr.tld.texture_type};- const bool is_array{instr.tld.is_array};+ const bool is_array{instr.tld.is_array != 0};const bool lod_enabled{instr.tld.GetTextureProcessMode() == TextureProcessMode::LL};const std::size_t coord_count{GetCoordCount(texture_type)};