mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Don't clear buffers if we have no native graphics context
Fixes ./servo -z for content that calls window.close(), such as content tests.
This commit is contained in:
parent
8891587901
commit
f0613184cf
1 changed files with 3 additions and 1 deletions
|
@ -174,7 +174,9 @@ impl<C: RenderListener + Send,T:Send+Freeze> RenderTask<C,T> {
|
|||
render_task.start();
|
||||
|
||||
// Destroy all the buffers.
|
||||
render_task.buffer_map.clear(native_graphics_context!(render_task));
|
||||
render_task.native_graphics_context.as_ref().map(|ctx|
|
||||
render_task.buffer_map.clear(ctx)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue