mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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.
|
||||
{
|
||||
let ctx = render_task.native_graphics_context.as_ref().unwrap();
|
||||
render_task.buffer_map.clear(ctx);
|
||||
match render_task.native_graphics_context.as_ref() {
|
||||
Some(ctx) => render_task.buffer_map.clear(ctx),
|
||||
None => (),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue