Avoid use borrow_mut in with_renderer
This commit is contained in:
parent
6a0491fe51
commit
9c651c5e0a
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ impl WindowContext {
|
||||||
where
|
where
|
||||||
F: FnOnce(&VulkanoWindowRenderer) -> T,
|
F: FnOnce(&VulkanoWindowRenderer) -> T,
|
||||||
{
|
{
|
||||||
let vulkano_windows = self.vulkano_windows.borrow_mut();
|
let vulkano_windows = self.vulkano_windows.borrow();
|
||||||
let renderer = vulkano_windows
|
let renderer = vulkano_windows
|
||||||
.get_renderer(self.window_id)
|
.get_renderer(self.window_id)
|
||||||
.expect("Failed to get renderer");
|
.expect("Failed to get renderer");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue