OGL: Invert Top-and-Bottom mode.

This commit is contained in:
Jules Blok 2015-09-10 22:22:26 +02:00
parent 3014feedc8
commit 99c08c89bb
1 changed files with 6 additions and 1 deletions

View File

@ -1293,6 +1293,11 @@ void Renderer::BlitScreen(TargetRectangle src, TargetRectangle dst, GLuint src_t
if (g_ActiveConfig.iStereoMode == STEREO_SBS || g_ActiveConfig.iStereoMode == STEREO_TAB)
{
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);
m_post_processor->BlitFromTexture(src, leftRc, src_texture, src_width, src_height, 0);