From 4505760ec7cc797de9ce789080a0798ac800bac0 Mon Sep 17 00:00:00 2001 From: GPUCode Date: Mon, 7 Aug 2023 03:34:46 +0300 Subject: [PATCH] renderer_gl: Disable stereo on bottom screen --- src/video_core/renderer_opengl/renderer_opengl.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index a57552c39..6ca3954cf 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -803,8 +803,17 @@ void RendererOpenGL::DrawBottomScreen(const Layout::FramebufferLayout& layout, const auto orientation = layout.is_rotated ? Layout::DisplayOrientation::Landscape : Layout::DisplayOrientation::Portrait; + const auto render_3d = +#ifndef ANDROID + Settings::values.layout_option.GetValue() == Settings::LayoutOption::SeparateWindows && + Settings::values.render_3d.GetValue() != Settings::StereoRenderOption::Anaglyph + ? Settings::StereoRenderOption::Off + : Settings::values.render_3d.GetValue(); +#else + const auto render_3d = Settings::values.render_3d.GetValue(); +#endif - switch (Settings::values.render_3d.GetValue()) { + switch (render_3d) { case Settings::StereoRenderOption::Off: { DrawSingleScreen(screen_infos[2], bottom_screen_left, bottom_screen_top, bottom_screen_width, bottom_screen_height, orientation);