From 56d645281f4cde8dba05bb77807e311c251fc60b Mon Sep 17 00:00:00 2001 From: Paul Rouget Date: Wed, 17 May 2017 09:25:51 +0200 Subject: [PATCH] make gl context current on browser initialization --- components/servo/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/servo/lib.rs b/components/servo/lib.rs index e3afaada420..83362789b05 100644 --- a/components/servo/lib.rs +++ b/components/servo/lib.rs @@ -126,6 +126,8 @@ impl Browser where Window: WindowMethods + 'static { // Global configuration options, parsed from the command line. let opts = opts::get(); + // Make sure the gl context is made current. + window.prepare_for_composite(0, 0); // Get both endpoints of a special channel for communication between // the client window and the compositor. This channel is unique because