diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2020-09-17 21:17:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 21:17:54 +0000 |
commit | 31461589c596c00971da6f3d8c7be367595dd79b (patch) | |
tree | c020ea78874bc16fd6514a94aa2273e0b91d186b /src | |
parent | 9f5124252435c065f27c9c270da18a4c0ffea143 (diff) | |
parent | ffc66f089d8a3aade2758e382501f87e4d98e7ff (diff) |
Merge pull request #4672 from lioncash/narrowing
decoder/texture: Eliminate narrowing conversion in GetTldCode()
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/shader/decode/texture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/decode/texture.cpp b/src/video_core/shader/decode/texture.cpp index 29ebf65ba..a03b50e39 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 de Node4 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)}; |