mirror of
https://github.com/citra-emu/citra.git
synced 2024-12-23 21:50: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,
|
void RendererOpenGL::LoadFBToScreenInfo(const GPU::Regs::FramebufferConfig& framebuffer,
|
||||||
ScreenInfo& screen_info, bool right_eye) {
|
ScreenInfo& screen_info, bool right_eye) {
|
||||||
|
|
||||||
|
if (framebuffer.address_right1 == 0 || framebuffer.address_right2 == 0)
|
||||||
|
right_eye = false;
|
||||||
|
|
||||||
const PAddr framebuffer_addr =
|
const PAddr framebuffer_addr =
|
||||||
framebuffer.active_fb == 0
|
framebuffer.active_fb == 0
|
||||||
? (!right_eye ? framebuffer.address_left1 : framebuffer.address_right1)
|
? (!right_eye ? framebuffer.address_left1 : framebuffer.address_right1)
|
||||||
|
Loading…
Reference in New Issue
Block a user