mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-01 08:00:29 +00:00
Workaround for #5
WS_CLIPCHILDREN and WS_CLIPSIBLINGS appear to cause flickering on specific video cards. OpenGL appears to work correctly without these, so we'll disable them to return to OpenTK 1.0 behavior.
This commit is contained in:
parent
58ab194ba8
commit
ca36c6f26a
|
@ -165,15 +165,12 @@ namespace OpenTK
|
|||
const int CS_VREDRAW = 0x1;
|
||||
const int CS_HREDRAW = 0x2;
|
||||
const int CS_OWNDC = 0x20;
|
||||
const int WS_CLIPCHILDREN = 0x02000000;
|
||||
const int WS_CLIPSIBLINGS = 0x04000000;
|
||||
|
||||
CreateParams cp = base.CreateParams;
|
||||
if (Configuration.RunningOnWindows)
|
||||
{
|
||||
// Setup necessary class style for OpenGL on windows
|
||||
cp.ClassStyle |= CS_VREDRAW | CS_HREDRAW | CS_OWNDC;
|
||||
cp.Style |= WS_CLIPCHILDREN | WS_CLIPSIBLINGS;
|
||||
}
|
||||
return cp;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue