From 4fe58d95450594496b65082ed5f1b2b5b8552bd8 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 31 Jul 2017 14:55:43 +0900 Subject: [PATCH] Add comment about setting background color --- src/OpenTK/Platform/Windows/WinGLNative.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/OpenTK/Platform/Windows/WinGLNative.cs b/src/OpenTK/Platform/Windows/WinGLNative.cs index a7a8ac5..3e95920 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; -- 2.7.4