Skip to content

Commit 1f2feb6

Browse files
JMS55mockersf
andauthored
Fix mesh re-allocation logic (#25259)
# Objective Fix #18808 ## Solution Drop added meshes before allocation, in case they already had an allocation, and generally manage slabs a little more carefully. --------- Co-authored-by: François Mockers <francois.mockers@vleue.com>
1 parent 35208e9 commit 1f2feb6

5 files changed

Lines changed: 735 additions & 13 deletions

File tree

crates/bevy_render/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ tracing = "0.1"
134134
[dev-dependencies]
135135
proptest = "1"
136136
proptest-derive = "0.8"
137+
# noop backend used for tests via test_utils.rs
138+
wgpu = { version = "30", default-features = false, features = ["noop"] }
137139

138140
[target.'cfg(all(target_arch = "wasm32", target_feature = "atomics"))'.dependencies]
139141
send_wrapper = { version = "0.6.0" }

crates/bevy_render/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ pub mod slab_allocator;
6363
pub mod storage;
6464
pub mod sync_component;
6565
pub mod sync_world;
66+
#[cfg(test)]
67+
pub(crate) mod test_utils;
6668
pub mod texture;
6769
pub mod uniform;
6870
pub mod view;

0 commit comments

Comments
 (0)