Do not apply viewport scaling in fullscreen mode

See https://forum.drdteam.org/viewtopic.php?t=7339
This commit is contained in:
alexey.lysiuk 2016-12-28 16:11:24 +02:00
parent efaaefcb70
commit 5dff3d5af0
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ void FGLRenderer::SetOutputViewport(GL_IRECT *bounds)
mSceneViewport.height = height;
// Scale viewports to fit letterbox
if (gl_scale_viewport || !FGLRenderBuffers::IsEnabled())
if ((gl_scale_viewport && !framebuffer->IsFullscreen()) || !FGLRenderBuffers::IsEnabled())
{
mScreenViewport.width = mOutputLetterbox.width;
mScreenViewport.height = mOutputLetterbox.height;