Merge pull request #3018 from Armada651/ogl-tab
OGL: Invert Top-and-Bottom mode.
This commit is contained in:
commit
5556781946
|
@ -1291,6 +1291,11 @@ void Renderer::BlitScreen(TargetRectangle src, TargetRectangle dst, GLuint src_t
|
||||||
if (g_ActiveConfig.iStereoMode == STEREO_SBS || g_ActiveConfig.iStereoMode == STEREO_TAB)
|
if (g_ActiveConfig.iStereoMode == STEREO_SBS || g_ActiveConfig.iStereoMode == STEREO_TAB)
|
||||||
{
|
{
|
||||||
TargetRectangle leftRc, rightRc;
|
TargetRectangle leftRc, rightRc;
|
||||||
|
|
||||||
|
// Top-and-Bottom mode needs to compensate for inverted vertical screen coordinates.
|
||||||
|
if (g_ActiveConfig.iStereoMode == STEREO_TAB)
|
||||||
|
ConvertStereoRectangle(dst, rightRc, leftRc);
|
||||||
|
else
|
||||||
ConvertStereoRectangle(dst, leftRc, rightRc);
|
ConvertStereoRectangle(dst, leftRc, rightRc);
|
||||||
|
|
||||||
m_post_processor->BlitFromTexture(src, leftRc, src_texture, src_width, src_height, 0);
|
m_post_processor->BlitFromTexture(src, leftRc, src_texture, src_width, src_height, 0);
|
||||||
|
|
Loading…
Reference in New Issue