diff --git a/src/OpenTK/Platform/Windows/WinGLNative.cs b/src/OpenTK/Platform/Windows/WinGLNative.cs index a7a8ac50..3e95920c 100644 --- a/src/OpenTK/Platform/Windows/WinGLNative.cs +++ b/src/OpenTK/Platform/Windows/WinGLNative.cs @@ -942,6 +942,7 @@ namespace OpenTK.Platform.Windows { ExtendedWindowClass wc = new ExtendedWindowClass(); wc.Size = ExtendedWindowClass.SizeInBytes; + // Setting the background here ensures the window doesn't flash gray/white until the first frame is rendered. wc.Background = Functions.GetStockObject(StockObjects.BLACK_BRUSH); wc.Style = DefaultClassStyle; wc.Instance = Instance;