Add comment about setting background color
authorDean Herbert <pe@ppy.sh>
Mon, 31 Jul 2017 05:55:43 +0000 (14:55 +0900)
committerDean Herbert <pe@ppy.sh>
Mon, 31 Jul 2017 06:52:46 +0000 (15:52 +0900)
src/OpenTK/Platform/Windows/WinGLNative.cs

index a7a8ac5..3e95920 100644 (file)
@@ -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;