title: Change GameWindow startup color to something else than default white?
body: <p>When you instantiate a new <code>GameWindow</code>, its background color is white, I would like to change it to black for instance.</p>
  <p>The problem is further visible if you have a long initialization sequence happening.</p>
  <p>The closest I could get is to set clear color in constructor then swap but it ain't perfect.</p>
  <pre><code>using System.Drawing;
  using OpenTK.Graphics.OpenGL;
  using OpenTK.Mathematics;
  using OpenTK.Windowing.Common;
  using OpenTK.Windowing.Desktop;
  
  internal static class Program
  {
      private static void Main(string[] args)
      {
          var gws = new GameWindowSettings();
          var nws = new NativeWindowSettings
          {
              Size = new Vector2i(320, 240)
          };
  
          using (var game = new Game(gws, nws))
          {
              game.Run();
          }
      }
  }
  
  internal class Game : GameWindow
  {
      public Game(GameWindowSettings gameWindowSettings, NativeWindowSettings nativeWindowSettings)
          : base(gameWindowSettings, nativeWindowSettings)
      {
          // close but still shows a white background at startup for some time
          GL.ClearColor(Color.Red);
          GL.Clear(ClearBufferMask.ColorBufferBit);
          Context.SwapBuffers();
      }
  
      protected override void OnLoad()
      {
          base.OnLoad();
          GL.ClearColor(Color.Green);
      }
  
      protected override void OnRenderFrame(FrameEventArgs args)
      {
          base.OnRenderFrame(args);
          GL.Clear(ClearBufferMask.ColorBufferBit);
          Context.SwapBuffers();
      }
  
      protected override void OnResize(ResizeEventArgs e)
      {
          base.OnResize(e);
          GL.Viewport(0, 0, e.Width, e.Height);
      }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/XG4Lh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XG4Lh.png" alt="enter image description here" /></a></p>
  <p><strong>Question:</strong></p>
  <p>How to get <code>GameWindow</code> to use another color than white when it's first shown?</p>