Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac8668 committed Jan 27, 2024
1 parent e6f1eae commit cfc1f99
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions src/chunk_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,15 +442,19 @@ fn update_test() {
let (dirty_render_rects_send, _) = async_channel::unbounded::<DeferredDirtyRectUpdate>();
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,
);
});
});
}

0 comments on commit cfc1f99

Please sign in to comment.