From cfc1f99c0fa2ef64de7cf906e9a14d0fcd20ff0f Mon Sep 17 00:00:00 2001 From: Isaac Turci <78173025+Zac8668@users.noreply.github.com> Date: Sat, 27 Jan 2024 20:20:37 -0300 Subject: [PATCH] Fix test --- src/chunk_group.rs | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/chunk_group.rs b/src/chunk_group.rs index 5040bfb..cbd94ed 100644 --- a/src/chunk_group.rs +++ b/src/chunk_group.rs @@ -442,15 +442,19 @@ fn update_test() { let (dirty_render_rects_send, _) = async_channel::unbounded::(); let dirty_render_rect_send = &dirty_render_rects_send; - compute_pool.scope(|scope| { - update_chunk_groups( - &mut chunk_manager.chunks, - (0, 0), - &dirty_rects, - manager_pos, - (dirty_update_rect_send, dirty_render_rect_send), - (dt, materials), - scope, - ); + compute_pool.scope(|deferred_scope: &Scope<'_, '_, ()>| { + + + compute_pool.scope(|scope| { + update_chunk_groups( + &mut chunk_manager.chunks, + (0, 0), + &dirty_rects, + manager_pos, + (dirty_update_rect_send, dirty_render_rect_send), + (dt, materials), + scope, + ); + }); }); }