mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 05:08:57 +00:00
RenderBase: Return a tuple from ConvertStereoRectangle instead of using out parameters
This commit is contained in:
parent
671b5f9747
commit
c7ab6861c2
6 changed files with 30 additions and 23 deletions
|
@ -10,6 +10,7 @@
|
|||
#include <cstdio>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
#include <vector>
|
||||
|
||||
#include "Common/Atomic.h"
|
||||
|
@ -1181,9 +1182,9 @@ void Renderer::BlitScreen(TargetRectangle src, TargetRectangle dst, GLuint src_t
|
|||
|
||||
// Top-and-Bottom mode needs to compensate for inverted vertical screen coordinates.
|
||||
if (g_ActiveConfig.iStereoMode == STEREO_TAB)
|
||||
ConvertStereoRectangle(dst, rightRc, leftRc);
|
||||
std::tie(rightRc, leftRc) = ConvertStereoRectangle(dst);
|
||||
else
|
||||
ConvertStereoRectangle(dst, leftRc, rightRc);
|
||||
std::tie(leftRc, rightRc) = ConvertStereoRectangle(dst);
|
||||
|
||||
m_post_processor->BlitFromTexture(src, leftRc, src_texture, src_width, src_height, 0);
|
||||
m_post_processor->BlitFromTexture(src, rightRc, src_texture, src_width, src_height, 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue