1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-21 02:17:08 +00:00

Reintroduces basic filtering for RGB mode (and introduces it for monochrome composite).

This commit is contained in:
Thomas Harte
2019-02-26 22:21:49 -05:00
parent cd055a0298
commit 68c5474e36
3 changed files with 48 additions and 16 deletions
+1
View File
@@ -535,6 +535,7 @@ void ScanTarget::draw(bool synchronous, int output_width, int output_height) {
const int framebuffer_height = std::min(output_height, 1080);
const int proportional_width = (framebuffer_height * 4) / 3;
if(!accumulation_texture_ || ( /* !synchronous && */ (accumulation_texture_->get_width() != proportional_width || accumulation_texture_->get_height() != framebuffer_height))) {
set_sampling_window(proportional_width, framebuffer_height, *output_shader_);
std::unique_ptr<OpenGL::TextureTarget> new_framebuffer(
new TextureTarget(
GLsizei(proportional_width),