From 5b58989b041859f75bee8d064d08ad536ad79ad7 Mon Sep 17 00:00:00 2001 From: Christopher James Halse Rogers Date: Thu, 13 Jul 2023 18:07:46 +1000 Subject: [PATCH] BasicScreenShooter: Actually cache current_renderer We need to actually *set* `last_rendered_size` somewhere if we want to use it to determine whether we need to construct a new renderer! --- src/server/compositor/basic_screen_shooter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/compositor/basic_screen_shooter.cpp b/src/server/compositor/basic_screen_shooter.cpp index 6d4cf3cdd49..cc3c1076dbc 100644 --- a/src/server/compositor/basic_screen_shooter.cpp +++ b/src/server/compositor/basic_screen_shooter.cpp @@ -190,6 +190,7 @@ auto mc::BasicScreenShooter::Self::renderer_for_buffer(std::shared_ptr(output); auto gl_surface = render_provider->surface_for_output(interface_provider, buffer_size, NoAuxConfig{}); current_renderer = renderer_factory->create_renderer_for(std::move(gl_surface), render_provider); + last_rendered_size = buffer_size; } return *current_renderer; }