diff options
author | FernandoS27 <fsahmkow27@gmail.com> | 2021-03-30 19:20:59 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:25 +0200 |
commit | 67afdaf56622d9e4129dfae42abfa743a4b025d4 (patch) | |
tree | 1ece321c6aa079b7d67d977268434a6cd049af9a /src/shader_recompiler/backend/spirv | |
parent | shader: Address feedback (diff) | |
download | yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar.gz yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar.bz2 yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar.lz yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar.xz yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.tar.zst yuzu-67afdaf56622d9e4129dfae42abfa743a4b025d4.zip |
Diffstat (limited to 'src/shader_recompiler/backend/spirv')
-rw-r--r-- | src/shader_recompiler/backend/spirv/emit_spirv_image.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp index 03d2ec73e..bc7de509b 100644 --- a/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp +++ b/src/shader_recompiler/backend/spirv/emit_spirv_image.cpp @@ -71,7 +71,7 @@ public: explicit ImageOperands(EmitContext& ctx, bool has_lod_clamp, Id derivates, u32 num_derivates, Id offset, Id lod_clamp) { - if (Sirit::ValidId(derivates)) { + if (!Sirit::ValidId(derivates)) { throw LogicError("Derivates must be present"); } boost::container::static_vector<Id, 3> deriv_x_accum; |