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

View file

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