From bb6251f35f6cd9e61cd5d369575020eda3e1901b Mon Sep 17 00:00:00 2001 From: Tobias Date: Fri, 30 Mar 2018 01:53:55 +0200 Subject: [PATCH] video_core: Remove Unreachable for invalid BlendEquation modes (#3595) * video_core: Remove Unreachable statement * Lower log level to ERROR --- src/video_core/renderer_opengl/pica_to_gl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video_core/renderer_opengl/pica_to_gl.h b/src/video_core/renderer_opengl/pica_to_gl.h index 7733f05f2..4b436d931 100644 --- a/src/video_core/renderer_opengl/pica_to_gl.h +++ b/src/video_core/renderer_opengl/pica_to_gl.h @@ -103,9 +103,9 @@ inline GLenum BlendEquation(Pica::FramebufferRegs::BlendEquation equation) { // Range check table for input if (static_cast(equation) >= ARRAY_SIZE(blend_equation_table)) { - LOG_CRITICAL(Render_OpenGL, "Unknown blend equation %u", static_cast(equation)); - UNREACHABLE(); + LOG_ERROR(Render_OpenGL, "Unknown blend equation %u", static_cast(equation)); + // This return value is hwtested, not just a stub return GL_FUNC_ADD; }