Reorder gl.Init() to after creating window