Skip to content

Commit

Permalink
BasicScreenShooter: Actually cache current_renderer
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
RAOF authored and AlanGriffiths committed Jul 17, 2023
1 parent c302751 commit 5b58989
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/compositor/basic_screen_shooter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ auto mc::BasicScreenShooter::Self::renderer_for_buffer(std::shared_ptr<mrs::Writ
auto interface_provider = std::make_shared<InterfaceProvider>(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;
}
Expand Down

0 comments on commit 5b58989

Please sign in to comment.