Fix OnOpenGlInit getting called twice
@ -108,8 +108,6 @@ namespace Avalonia.OpenGL.Controls
_visual.Size = new Vector(Bounds.Width, Bounds.Height);
_visual.Surface = _resources.Surface;
ElementComposition.SetElementChildVisual(this, _visual);
using (_resources.Context.MakeCurrent())
OnOpenGlInit(_resources.Context.GlInterface);
return true;
}