bevy/crates/bevy_pbr/src
ira f69f1329e0 Fix Window feedback loop between the OS and Bevy (#7517)
# Objective

Fix #7377
Fix #7513

## Solution

Record the changes made to the Bevy `Window` from `winit` as 'canon' to avoid Bevy sending those changes back to `winit` again, causing a feedback loop.

## Changelog

* Removed `ModifiesWindows` system label.
  Neither `despawn_window` nor `changed_window` actually modify the `Window` component so all the `.after(ModifiesWindows)` shouldn't be necessary.
* Moved `changed_window` and `despawn_window` systems to `CoreStage::Last` to avoid systems making changes to the `Window` between `changed_window` and the end of the frame as they would be ignored.

## Migration Guide
The `ModifiesWindows` system label was removed.


Co-authored-by: devil-ira <justthecooldude@gmail.com>
2023-02-07 14:18:13 +00:00
..
prepass Migrate engine to Schedule v3 (#7267) 2023-02-06 02:04:50 +00:00
render add ambient lighting hook (#5428) 2023-02-07 00:41:18 +00:00
alpha.rs Standard Material Blend Modes (#6644) 2023-01-21 21:46:53 +00:00
bundle.rs Cascaded shadow maps. (#7064) 2023-01-25 12:35:39 +00:00
fog.rs Add Distance and Atmospheric Fog support (#6412) 2023-01-29 15:28:56 +00:00
lib.rs Fix Window feedback loop between the OS and Bevy (#7517) 2023-02-07 14:18:13 +00:00
light.rs Migrate engine to Schedule v3 (#7267) 2023-02-06 02:04:50 +00:00
material.rs use better set inheritance in render systems (#7524) 2023-02-06 21:57:59 +00:00
pbr_material.rs Add Distance and Atmospheric Fog support (#6412) 2023-01-29 15:28:56 +00:00
wireframe.rs Migrate engine to Schedule v3 (#7267) 2023-02-06 02:04:50 +00:00