mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Check properly for None in the headless compositor case
This commit is contained in:
parent
cbc8006c60
commit
fe22598c56
1 changed files with 4 additions and 2 deletions
|
@ -192,8 +192,10 @@ impl<C: RenderListener + Send,T:Send+Freeze> RenderTask<C,T> {
|
||||||
|
|
||||||
// Destroy all the buffers.
|
// Destroy all the buffers.
|
||||||
{
|
{
|
||||||
let ctx = render_task.native_graphics_context.as_ref().unwrap();
|
match render_task.native_graphics_context.as_ref() {
|
||||||
render_task.buffer_map.clear(ctx);
|
Some(ctx) => render_task.buffer_map.clear(ctx),
|
||||||
|
None => (),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue