From 04cc8fb5371107027dd7ff347a001f83bb974a6d Mon Sep 17 00:00:00 2001 From: Vamsi Krishna Date: Thu, 8 Mar 2018 04:32:36 +0530 Subject: [PATCH] Discard Gas mode renders (#3486) * Discard gas_mode renders This discards the gas_mode / fog effect from games that use it and allows the games to display without it. Note that gas mode is still unimplemented and will LOG. This bypasses #3287. (Doesn't fix it) * fix clang --- src/video_core/renderer_opengl/gl_shader_gen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_shader_gen.cpp b/src/video_core/renderer_opengl/gl_shader_gen.cpp index eaf99f8e2c..7e01fe0b0f 100644 --- a/src/video_core/renderer_opengl/gl_shader_gen.cpp +++ b/src/video_core/renderer_opengl/gl_shader_gen.cpp @@ -1175,7 +1175,8 @@ vec4 secondary_fragment_color = vec4(0.0); Core::Telemetry().AddField(Telemetry::FieldType::Session, "VideoCore_Pica_UseGasMode", true); LOG_CRITICAL(Render_OpenGL, "Unimplemented gas mode"); - UNIMPLEMENTED(); + out += "discard; }"; + return out; } out += "gl_FragDepth = depth;\n";