make gl context current on browser initialization

This commit is contained in:
Paul Rouget 2017-05-17 09:25:51 +02:00
parent ababebcced
commit 56d645281f

View file

@ -126,6 +126,8 @@ impl<Window> Browser<Window> 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