renderer_gl: Disable stereo on bottom screen

This commit is contained in:
GPUCode 2023-08-07 03:34:46 +03:00
parent 651663e5f7
commit 4505760ec7

View File

@ -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);