citra-emu
/
citra-canary
Archived
1
0
Fork 0

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
This commit is contained in:
jmorriz124 2018-04-27 11:49:11 -04:00 committed by N00byKing
parent d27312b816
commit 8c0ede544f
1 changed files with 3 additions and 0 deletions

View File

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