aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/gfx/buffer_map.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/gfx/buffer_map.rs')
-rw-r--r--src/components/gfx/buffer_map.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/gfx/buffer_map.rs b/src/components/gfx/buffer_map.rs
index b061362829c..4c9b8950d94 100644
--- a/src/components/gfx/buffer_map.rs
+++ b/src/components/gfx/buffer_map.rs
@@ -74,7 +74,7 @@ impl<T: Tile> BufferMap<T> {
counter: 0u,
}
}
-
+
/// Insert a new buffer into the map.
pub fn insert(&mut self, graphics_context: &NativePaintingGraphicsContext, new_buffer: T) {
let new_key = BufferKey::get(new_buffer.get_size_2d());
@@ -129,7 +129,7 @@ impl<T: Tile> BufferMap<T> {
Some(ref mut buffer_val) => {
buffer_val.last_action = self.counter;
self.counter += 1;
-
+
let buffer = buffer_val.buffers.pop().take_unwrap();
self.mem -= buffer.get_mem();
if buffer_val.buffers.is_empty() {
@@ -139,7 +139,7 @@ impl<T: Tile> BufferMap<T> {
}
None => None,
};
-
+
if flag {
self.map.pop(&key); // Don't store empty vectors!
}