mirror of
https://github.com/TomHarte/CLK.git
synced 2025-08-13 00:25:26 +00:00
Corrects aspect ratio when changing accumulation texture size.
This commit is contained in:
@@ -585,7 +585,7 @@ void ScanTarget::update(int output_width, int output_height) {
|
|||||||
|
|
||||||
test_gl(glActiveTexture, AccumulationTextureUnit);
|
test_gl(glActiveTexture, AccumulationTextureUnit);
|
||||||
accumulation_texture_->bind_texture();
|
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);
|
test_gl(glClear, GL_STENCIL_BUFFER_BIT);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user