From 8c0ede544f54bace5909c7da55984fa0fef1fdb2 Mon Sep 17 00:00:00 2001 From: jmorriz124 <38574033+jmorriz124@users.noreply.github.com> Date: Fri, 27 Apr 2018 11:49:11 -0400 Subject: [PATCH] 3dtv botenable improved (#1) * Fixed crash when right eye isn't available * Enabled swap screens in stereo views. Fixed window alignment in stereo views to handle all screen aspect ratios. * Minor code cleanup and clang fomat updates. * Minor cleanup of swapped and aspect ratio code --- src/video_core/renderer_opengl/renderer_opengl.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 10d3d382b..c5060571f 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -163,6 +163,9 @@ void RendererOpenGL::SwapBuffers() { void RendererOpenGL::LoadFBToScreenInfo(const GPU::Regs::FramebufferConfig& framebuffer, ScreenInfo& screen_info, bool right_eye) { + if (framebuffer.address_right1 == 0 || framebuffer.address_right2 == 0) + right_eye = false; + const PAddr framebuffer_addr = framebuffer.active_fb == 0 ? (!right_eye ? framebuffer.address_left1 : framebuffer.address_right1)