Преглед изворни кода

Merge pull request #3442 from ReinUsesLisp/fix-3d-assert

shader/texture: Fix illegal 3D texture assert
bunnei пре 6 година
родитељ
комит
27d57e0c4a
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/video_core/shader/decode/texture.cpp

+ 1 - 1
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();
     const bool is_bindless = bindless_reg.has_value();
 
 
     UNIMPLEMENTED_IF(texture_type == TextureType::TextureCube && is_array && is_shadow);
     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");
                "Illegal texture type");
 
 
     const SamplerInfo info{texture_type, is_array, is_shadow, false};
     const SamplerInfo info{texture_type, is_array, is_shadow, false};