From 7fa9177830c201d249884cdc922edd7570b24ad5 Mon Sep 17 00:00:00 2001 From: bunnei Date: Wed, 27 Jun 2018 01:14:34 -0400 Subject: gl_shader_decompiler: Add a return path for unknown instructions. --- src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/video_core') 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: if (!opcode) { NGLOG_CRITICAL(HW_GPU, "Unhandled instruction: {0:x}", instr.value); UNREACHABLE(); + return offset + 1; } shader.AddLine("// " + std::to_string(offset) + ": " + opcode->GetName()); -- cgit v1.2.3