mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
First call to eglMakeCurrent with no draw or read surface leads to black window on Nvidia/X11. This change ensures first call to eglMakeCurrent made with non-null surfaces.
This commit is contained in:
parent
0aff4e1d57
commit
7119eb7471
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ impl WebrenderSurfman {
|
|||
let _ = device.destroy_surface(&mut context, &mut surface);
|
||||
err
|
||||
})?;
|
||||
|
||||
device.make_context_current(&context)?;
|
||||
|
||||
let swap_chain = if headless {
|
||||
Some(SwapChain::create_attached(
|
||||
&mut device,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue