Fix fractional-scale capture sizing and release idle capture caches

This commit is contained in:
Samuel Onoja committed 2026-10-14 13:16:24 +01:00
1 parent 07a8e50f47
commit a5e8ba65e2
5 files changed
+60 -7

No files matched your search

+1
View File
@@ -44,6 +44,7 @@ pub(crate) fn capture_output_elements(
) -> Vec<AnimatedWindowRenderElement> {
// Blur textures and resize handoff snapshots must never be shared with
// display rendering. Only the capture scene can populate these caches.
crate::backends::direct::capture::touch_cache(state);
std::mem::swap(&mut state.render, &mut state.capture_render);
let elements = scene_elements(state, renderer, output, include_cursor, frame, true);
std::mem::swap(&mut state.render, &mut state.capture_render);