Avoid use borrow_mut in with_renderer

This commit is contained in:
Florian RICHER 2025-06-12 12:56:43 +02:00
parent 6a0491fe51
commit 9c651c5e0a
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77

View file

@ -104,7 +104,7 @@ impl WindowContext {
where
F: FnOnce(&VulkanoWindowRenderer) -> T,
{
let vulkano_windows = self.vulkano_windows.borrow_mut();
let vulkano_windows = self.vulkano_windows.borrow();
let renderer = vulkano_windows
.get_renderer(self.window_id)
.expect("Failed to get renderer");