mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-03-13 09:12:27 +01:00
fix opengl renderer
This commit is contained in:
parent
470d919fd4
commit
a562f09c3a
@ -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<float>(top_screen_left + layout.width),
|
||||
// top_screen_top, top_screen_width, top_screen_height, orientation);
|
||||
DrawSingleScreen(screen_infos[rightside],
|
||||
static_cast<float>(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<float>(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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user