summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2018-06-27 01:14:34 -0400
committerGravatar GitHub2018-06-27 01:14:34 -0400
commit7fa9177830c201d249884cdc922edd7570b24ad5 (patch)
tree75cbd304edef7dfe5e9e479f8da99b66608d0244 /src
parentMerge pull request #594 from bunnei/max-constbuff (diff)
downloadyuzu-7fa9177830c201d249884cdc922edd7570b24ad5.tar.gz
yuzu-7fa9177830c201d249884cdc922edd7570b24ad5.tar.xz
yuzu-7fa9177830c201d249884cdc922edd7570b24ad5.zip
gl_shader_decompiler: Add a return path for unknown instructions.
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp1
1 files changed, 1 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 cd7569e2f..46eaad021 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -811,6 +811,7 @@ private:
811 if (!opcode) { 811 if (!opcode) {
812 NGLOG_CRITICAL(HW_GPU, "Unhandled instruction: {0:x}", instr.value); 812 NGLOG_CRITICAL(HW_GPU, "Unhandled instruction: {0:x}", instr.value);
813 UNREACHABLE(); 813 UNREACHABLE();
814 return offset + 1;
814 } 815 }
815 816
816 shader.AddLine("// " + std::to_string(offset) + ": " + opcode->GetName()); 817 shader.AddLine("// " + std::to_string(offset) + ": " + opcode->GetName());