Skip to content
Snippets Groups Projects
Unverified Commit 43f7e931 authored by Christoph Grabo's avatar Christoph Grabo
Browse files

Allow minimising

This change is copied verbatim from bevy itself. See:
https://github.com/bevyengine/bevy/commit/09a3d8abe062984479bf0e99fcc1508bb722baf6
parent 3f5546ab
No related branches found
No related tags found
No related merge requests found
...@@ -62,10 +62,12 @@ impl Node for MainPassUINode { ...@@ -62,10 +62,12 @@ impl Node for MainPassUINode {
world: &World, world: &World,
) -> Result<(), NodeRunError> { ) -> Result<(), NodeRunError> {
let view_entity = graph.get_input_entity(Self::IN_VIEW)?; let view_entity = graph.get_input_entity(Self::IN_VIEW)?;
let (transparent_phase, target) = self // adapted from bevy itself;
.query // see: <https://github.com/bevyengine/bevy/commit/09a3d8abe062984479bf0e99fcc1508bb722baf6>
.get_manual(world, view_entity) let (transparent_phase, target) = match self.query.get_manual(world, view_entity) {
.expect("view entity should exist"); Ok(it) => it,
_ => return Ok(()),
};
// let clear_color = world.get_resource::<ClearColor>().unwrap(); // let clear_color = world.get_resource::<ClearColor>().unwrap();
{ {
let pass_descriptor = RenderPassDescriptor { let pass_descriptor = RenderPassDescriptor {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment