fix opengl renderer

This commit is contained in:
David Griswold 2024-08-27 23:36:46 -03:00 committed by OpenSauce04
parent 470d919fd4
commit a562f09c3a

View File

@ -757,9 +757,9 @@ void RendererOpenGL::DrawTopScreen(const Layout::FramebufferLayout& layout,
DrawSingleScreen(screen_infos[leftside], top_screen_left, top_screen_top, top_screen_width, DrawSingleScreen(screen_infos[leftside], top_screen_left, top_screen_top, top_screen_width,
top_screen_height, orientation); top_screen_height, orientation);
glUniform1i(uniform_layer, 1); glUniform1i(uniform_layer, 1);
// DrawSingleScreen(screen_infos[rightside], DrawSingleScreen(screen_infos[rightside],
// static_cast<float>(top_screen_left + layout.width), static_cast<float>(top_screen_left + layout.width / 2), top_screen_top,
// top_screen_top, top_screen_width, top_screen_height, orientation); top_screen_width, top_screen_height, orientation);
break; break;
} }
case Settings::StereoRenderOption::CardboardVR: { case Settings::StereoRenderOption::CardboardVR: {
@ -815,10 +815,10 @@ void RendererOpenGL::DrawBottomScreen(const Layout::FramebufferLayout& layout,
case Settings::StereoRenderOption::SideBySideFull: { case Settings::StereoRenderOption::SideBySideFull: {
DrawSingleScreen(screen_infos[2], bottom_screen_left, bottom_screen_top, DrawSingleScreen(screen_infos[2], bottom_screen_left, bottom_screen_top,
bottom_screen_width, bottom_screen_height, orientation); bottom_screen_width, bottom_screen_height, orientation);
// glUniform1i(uniform_layer, 1); glUniform1i(uniform_layer, 1);
// DrawSingleScreen( DrawSingleScreen(
// screen_infos[2], static_cast<float>(bottom_screen_left + layout.width), screen_infos[2], bottom_screen_left + layout.width / 2,
// bottom_screen_top, bottom_screen_width, bottom_screen_height, orientation); bottom_screen_top, bottom_screen_width, bottom_screen_height, orientation);
break; break;
} }
case Settings::StereoRenderOption::CardboardVR: { case Settings::StereoRenderOption::CardboardVR: {