From ca36c6f26a066078ac5cdd2efdc92b2f15a94410 Mon Sep 17 00:00:00 2001 From: "Stefanos A." Date: Mon, 2 Dec 2013 23:39:36 +0100 Subject: [PATCH] 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. --- Source/GLControl/GLControl.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Source/GLControl/GLControl.cs b/Source/GLControl/GLControl.cs index b648a5e6..bafed945 100644 --- a/Source/GLControl/GLControl.cs +++ b/Source/GLControl/GLControl.cs @@ -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; }