projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e44aba3
)
Add comment about setting background color
author
Dean Herbert
<pe@ppy.sh>
Mon, 31 Jul 2017 05:55:43 +0000
(14:55 +0900)
committer
Dean Herbert
<pe@ppy.sh>
Mon, 31 Jul 2017 06:52:46 +0000
(15:52 +0900)
src/OpenTK/Platform/Windows/WinGLNative.cs
patch
|
blob
|
history
diff --git
a/src/OpenTK/Platform/Windows/WinGLNative.cs
b/src/OpenTK/Platform/Windows/WinGLNative.cs
index
a7a8ac5
..
3e95920
100644
(file)
--- 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;