From a562f09c3a97cb19fe7ece99247dd64be750774b Mon Sep 17 00:00:00 2001 From: David Griswold Date: Tue, 27 Aug 2024 23:36:46 -0300 Subject: [PATCH] fix opengl renderer --- src/video_core/renderer_opengl/renderer_opengl.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 04cadd5c4..b298d0264 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -757,9 +757,9 @@ void RendererOpenGL::DrawTopScreen(const Layout::FramebufferLayout& layout, DrawSingleScreen(screen_infos[leftside], top_screen_left, top_screen_top, top_screen_width, top_screen_height, orientation); glUniform1i(uniform_layer, 1); - // DrawSingleScreen(screen_infos[rightside], - // static_cast(top_screen_left + layout.width), - // top_screen_top, top_screen_width, top_screen_height, orientation); + DrawSingleScreen(screen_infos[rightside], + static_cast(top_screen_left + layout.width / 2), top_screen_top, + top_screen_width, top_screen_height, orientation); break; } case Settings::StereoRenderOption::CardboardVR: { @@ -815,10 +815,10 @@ void RendererOpenGL::DrawBottomScreen(const Layout::FramebufferLayout& layout, case Settings::StereoRenderOption::SideBySideFull: { DrawSingleScreen(screen_infos[2], bottom_screen_left, bottom_screen_top, bottom_screen_width, bottom_screen_height, orientation); - // glUniform1i(uniform_layer, 1); - // DrawSingleScreen( - // screen_infos[2], static_cast(bottom_screen_left + layout.width), - // bottom_screen_top, bottom_screen_width, bottom_screen_height, orientation); + glUniform1i(uniform_layer, 1); + DrawSingleScreen( + screen_infos[2], bottom_screen_left + layout.width / 2, + bottom_screen_top, bottom_screen_width, bottom_screen_height, orientation); break; } case Settings::StereoRenderOption::CardboardVR: {