// Recreate window swapchains as necessary due to `loop_mode` switch.
Recreate window swapchains as necessary due to `loop_mode` switch.
Recreate window swapchains as necessary due to ` loop_mode ` switch .
fn change_loop_mode(app: &App, loop_mode: &LoopMode) {
    // Re-build the window swapchains so that they are optimal for the new loop mode.
    let mut windows = app.windows.borrow_mut();
    for window in windows.values_mut() {
        change_loop_mode_for_window(window, loop_mode);
    }
}
fn change_loop_mode ( app : & App , loop_mode : & LoopMode ) { // Re-build the window swapchains so that they are optimal for the new loop mode. let mut windows = app . windows . borrow_mut ( ) ; for window in windows . values_mut ( ) { change_loop_mode_for_window ( window , loop_mode ) ; } }
Recreate window swapchains as necessary due to `loop_mode` switch.
Recreate window swapchains as necessary due to ` loop_mode ` switch .
app
&App
loop_mode
&LoopMode