mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-26 09:29:45 +00:00
Corrects aspect ratio when changing accumulation texture size.
This commit is contained in:
parent
f18132d674
commit
7441e3f4c5
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user