aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/decode/texture.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2020-02-21 15:57:22 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-21 15:57:27 -0300
commit8ab2e5f561c4ebe3a7a8ce2da81aaaf346b53508 (patch)
treed45b569c0c060eed74fb28037b07e41cd4b5cd0e /src/video_core/shader/decode/texture.cpp
parentc22c0ea07041d58ff81a8e8dc0aaa5531825bf31 (diff)
shader/texture: Fix illegal 3D texture assert
Fix typo in the illegal 3D texture assert logic. We care about catching arrayed 3D textures or 3D shadow textures, not regular 3D textures.
Diffstat (limited to 'src/video_core/shader/decode/texture.cpp')
-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 542636430a..bee7d8cad5 100644
--- a/src/video_core/shader/decode/texture.cpp
+++ b/src/video_core/shader/decode/texture.cpp
@@ -527,7 +527,7 @@ Node4 ShaderIR::GetTextureCode(Instruction instr, TextureType texture_type,
const bool is_bindless = bindless_reg.has_value();
UNIMPLEMENTED_IF(texture_type == TextureType::TextureCube && is_array && is_shadow);
- ASSERT_MSG(texture_type != TextureType::Texture3D || is_array || is_shadow,
+ ASSERT_MSG(texture_type != TextureType::Texture3D || !is_array || !is_shadow,
"Illegal texture type");
const SamplerInfo info{texture_type, is_array, is_shadow, false};