OGL: Invert Top-and-Bottom mode.
This commit is contained in:
parent
3014feedc8
commit
99c08c89bb
|
@ -1293,7 +1293,12 @@ 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;
|
||||||
ConvertStereoRectangle(dst, 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);
|
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);
|
m_post_processor->BlitFromTexture(src, rightRc, src_texture, src_width, src_height, 1);
|
||||||
|
|
Loading…
Reference in New Issue