mirror of
https://git.h3cjp.net/H3cJP/citra.git
synced 2024-11-26 11:33:05 +00:00
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:
parent
d27312b816
commit
8c0ede544f
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue