From 7441e3f4c58445245f92631fb0acc28665099210 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 5 Mar 2019 22:10:32 -0500 Subject: [PATCH] Corrects aspect ratio when changing accumulation texture size. --- Outputs/OpenGL/ScanTarget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Outputs/OpenGL/ScanTarget.cpp b/Outputs/OpenGL/ScanTarget.cpp index 303c51f88..7b0452311 100644 --- a/Outputs/OpenGL/ScanTarget.cpp +++ b/Outputs/OpenGL/ScanTarget.cpp @@ -585,7 +585,7 @@ void ScanTarget::update(int output_width, int output_height) { test_gl(glActiveTexture, AccumulationTextureUnit); accumulation_texture_->bind_texture(); - accumulation_texture_->draw(float(output_width) / float(output_height)); + accumulation_texture_->draw(4.0f / 3.0f); test_gl(glClear, GL_STENCIL_BUFFER_BIT);