aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/gfx/render_task.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/gfx/render_task.rs')
-rw-r--r--src/components/gfx/render_task.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/gfx/render_task.rs b/src/components/gfx/render_task.rs
index 66817554e1f..bb9ed1f665a 100644
--- a/src/components/gfx/render_task.rs
+++ b/src/components/gfx/render_task.rs
@@ -191,11 +191,9 @@ impl<C: RenderListener + Send,T:Send+Freeze> RenderTask<C,T> {
render_task.start();
// Destroy all the buffers.
- {
- match render_task.native_graphics_context.as_ref() {
- Some(ctx) => render_task.buffer_map.clear(ctx),
- None => (),
- }
+ match render_task.native_graphics_context.as_ref() {
+ Some(ctx) => render_task.buffer_map.clear(ctx),
+ None => (),
}
}