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:
zood 2020-11-07 13:28:55 +03:00
parent 0aff4e1d57
commit 7119eb7471

View file

@ -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,