[winit 0.21] Examples that set_inner_size
during view panic!
with "already mutably borrowed" on Windows
#461
Labels
set_inner_size
during view panic!
with "already mutably borrowed" on Windows
#461
Out of convenience, many of the
nature_of_code
andgenerative_design
examples set the size of the window first thing in theview
call. This seems to be triggering a bug withinwinit
0.21 on Windows.See:
In the meantime, you should be able to work around this bug by removing the
set_inner_size
call and if necessary set the window size either during window construction or during anupdate
function instead.Potentially we could work around this in nannou by changing the window's
set_inner_size
methods to not call directly into thewinit::window::Window
'sset_inner_size
method, but instead queue the new size so that it may be updated at a "safe" time. This might be a bit much for a temporary workaround though, but if it proves to be a big enough issue it might be worth it.Here's the stack trace of the
panic!
:The text was updated successfully, but these errors were encountered: