summaryrefslogtreecommitdiffstats
path: root/src/video_core/shader
diff options
context:
space:
mode:
authorRodrigo Locatti <reinuseslisp@airmail.cc>2020-09-17 23:17:54 +0200
committerGitHub <noreply@github.com>2020-09-17 23:17:54 +0200
commit31461589c596c00971da6f3d8c7be367595dd79b (patch)
treec020ea78874bc16fd6514a94aa2273e0b91d186b /src/video_core/shader
parentMerge pull request #4673 from lioncash/fallthrough (diff)
parentdecoder/texture: Eliminate narrowing conversion in GetTldCode() (diff)
downloadyuzu-31461589c596c00971da6f3d8c7be367595dd79b.tar
yuzu-31461589c596c00971da6f3d8c7be367595dd79b.tar.gz
yuzu-31461589c596c00971da6f3d8c7be367595dd79b.tar.bz2
yuzu-31461589c596c00971da6f3d8c7be367595dd79b.tar.lz
yuzu-31461589c596c00971da6f3d8c7be367595dd79b.tar.xz
yuzu-31461589c596c00971da6f3d8c7be367595dd79b.tar.zst
yuzu-31461589c596c00971da6f3d8c7be367595dd79b.zip
Diffstat (limited to 'src/video_core/shader')
-rw-r--r--src/video_core/shader/decode/texture.cpp2
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)};