1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 18:30:21 +00:00

Corrects aspect ratio when changing accumulation texture size.

This commit is contained in:
Thomas Harte 2019-03-05 22:10:32 -05:00
parent f18132d674
commit 7441e3f4c5

View File

@ -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);