소스 검색

gl_shader_decompiler: Add a return path for unknown instructions.

bunnei 8 년 전
부모
커밋
7fa9177830
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/video_core/renderer_opengl/gl_shader_decompiler.cpp

+ 1 - 0
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());