Fix double unmaps.

This commit is contained in:
Joshua Yanovski 2022-08-28 19:14:01 -07:00
parent d2cc58b5a0
commit 1dc6757668
6 changed files with 3 additions and 7 deletions

View File

@ -7,7 +7,6 @@
allocator_api,
array_chunks,
associated_type_defaults,
bool_to_option,
coerce_unsized,
dispatch_from_dyn,
exclusive_wrapper,

View File

@ -1,4 +1,4 @@
#![feature(bool_to_option, let_else, btree_drain_filter)]
#![feature(let_else, btree_drain_filter)]
#![allow(clippy::option_map_unit_fn)]
mod aura;

View File

@ -1,6 +1,5 @@
#![deny(unsafe_code)]
#![deny(clippy::clone_on_ref_ptr)]
#![feature(bool_to_option)]
#[cfg(target_os = "windows")]
#[global_allocator]

View File

@ -7,7 +7,6 @@
array_methods,
array_windows,
array_zip,
bool_to_option,
drain_filter,
once_cell,
stmt_expr_attributes,

View File

@ -1547,9 +1547,9 @@ impl/*<V: RectRasterableVol>*/ Terrain<V> {
frustum_last_plane_index: 0,
});
} else if let Some(chunk) = self.chunks.get_mut(&pos) {
// There was an update that didn't require a remesh (probably related to
/* // There was an update that didn't require a remesh (probably related to
// non-glowing sprites) so we just update those.
renderer.unmap_instances(&mut response.sprite_instances.1);
renderer.unmap_instances(&mut response.sprite_instances.1); */
chunk.sprite_instances = response.sprite_instances;
chunk.blocks_of_interest = response.blocks_of_interest;
} else {

View File

@ -10,7 +10,6 @@
#![feature(
arbitrary_enum_discriminant,
associated_const_equality,
bool_to_option,
generic_associated_types,
label_break_value,
option_zip,