yuzu-emu
/
yuzu
Archived
1
0
Fork 0

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

shader/texture: Fix illegal 3D texture assert
This commit is contained in:
bunnei 2020-02-21 22:08:57 -05:00 committed by GitHub
commit 27d57e0c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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};