diff options
author | bunnei <bunneidev@gmail.com> | 2018-07-24 01:21:28 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-07-24 03:08:40 +0200 |
commit | 81aa02424bfd3f6b518684de256e925baccea5fd (patch) | |
tree | 70dae00a044341eade518dcdce58723b84ef1a41 /src | |
parent | Merge pull request #775 from lioncash/str (diff) | |
download | yuzu-81aa02424bfd3f6b518684de256e925baccea5fd.tar yuzu-81aa02424bfd3f6b518684de256e925baccea5fd.tar.gz yuzu-81aa02424bfd3f6b518684de256e925baccea5fd.tar.bz2 yuzu-81aa02424bfd3f6b518684de256e925baccea5fd.tar.lz yuzu-81aa02424bfd3f6b518684de256e925baccea5fd.tar.xz yuzu-81aa02424bfd3f6b518684de256e925baccea5fd.tar.zst yuzu-81aa02424bfd3f6b518684de256e925baccea5fd.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index ba827181b..02ed86e5a 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp @@ -485,6 +485,12 @@ private: */ void SetRegister(const Register& reg, u64 elem, const std::string& value, u64 dest_num_components, u64 value_num_components, u64 dest_elem) { + if (reg == Register::ZeroIndex) { + LOG_CRITICAL(HW_GPU, "Cannot set Register::ZeroIndex"); + UNREACHABLE(); + return; + } + std::string dest = GetRegister(reg, static_cast<u32>(dest_elem)); if (dest_num_components > 1) { dest += GetSwizzle(elem); |