From e4d76cd4d809508d8dd45ad1bcd423588363140c Mon Sep 17 00:00:00 2001 From: james7132 Date: Tue, 13 Dec 2022 19:11:35 -0800 Subject: [PATCH] Remove spurious files --- Cargo.toml | 5 +---- crates/bevy_render/src/render_phase/draw.rs | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3382f75c110eaf..dc682d7c2f751f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1607,7 +1607,4 @@ wasm = true inherits = "release" opt-level = "z" lto = "fat" -codegen-units = 1 - -[profile.release] -lto = "fat" \ No newline at end of file +codegen-units = 1 \ No newline at end of file diff --git a/crates/bevy_render/src/render_phase/draw.rs b/crates/bevy_render/src/render_phase/draw.rs index edd614da4d0624..2006914d666bba 100644 --- a/crates/bevy_render/src/render_phase/draw.rs +++ b/crates/bevy_render/src/render_phase/draw.rs @@ -289,7 +289,7 @@ macro_rules! render_command_tuple_impl { ($($name,)*): SystemParamItem<'w, '_, Self::Param>, _pass: &mut TrackedRenderPass<'w>, ) -> RenderCommandResult { - $(if let RenderCommandResult::Failure = $name::render(_item, $view, $entity, $name, _pass) { + $(if $name::render(_item, $view, $entity, $name, _pass) == RenderCommandResult::Failure { return RenderCommandResult::Failure; })* RenderCommandResult::Success