From 6ca2b3fce1de846d617bf3fdb80cbfca178e1780 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 21 Jul 2018 12:13:17 +0200 Subject: [PATCH] - fixed display for smaller screeblocks value. When refactoring the screen scaling one line too many was altered by accident. --- src/gl/renderer/gl_postprocess.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/renderer/gl_postprocess.cpp b/src/gl/renderer/gl_postprocess.cpp index bca08d8b70..5694912cbc 100644 --- a/src/gl/renderer/gl_postprocess.cpp +++ b/src/gl/renderer/gl_postprocess.cpp @@ -224,7 +224,7 @@ void FGLRenderer::DrawPresentTexture(const IntRect &box, bool applyGamma) mPresentShader->Uniforms->Saturation = clamp(vid_saturation, -15.0f, 15.f); mPresentShader->Uniforms->GrayFormula = static_cast(gl_satformula); } - mPresentShader->Uniforms->Scale = screen->SceneScale(); + mPresentShader->Uniforms->Scale = { screen->mScreenViewport.width / (float)mBuffers->GetWidth(), screen->mScreenViewport.height / (float)mBuffers->GetHeight() }; mPresentShader->Uniforms.Set(); RenderScreenQuad(); }