public GraphicsDevice CreateGraphicsDevice(SurfaceSettings settings, IRenderTarget renderTarget) { renderTarget.Activate(); Functions.Init(); return(new GLGraphicsDevice(settings, renderTarget)); }