aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzood <asd>2020-11-07 13:28:55 +0300
committerzood <asd>2020-11-07 13:28:55 +0300
commit7119eb7471e4850f8a69ed2973216256aad38707 (patch)
tree3880d31ca827e872954fb243080a69e1964fd6fa
parent0aff4e1d577620c20b850845e83d612763821216 (diff)
downloadservo-7119eb7471e4850f8a69ed2973216256aad38707.tar.gz
servo-7119eb7471e4850f8a69ed2973216256aad38707.zip
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.
-rw-r--r--components/webrender_surfman/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/webrender_surfman/lib.rs b/components/webrender_surfman/lib.rs
index 533614256c1..9460417dc7e 100644
--- a/components/webrender_surfman/lib.rs
+++ b/components/webrender_surfman/lib.rs
@@ -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,