mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-12-24 17:01:48 +01: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 New Issue
Block a user