From: thefiddler Date: Tue, 29 Apr 2014 06:48:49 +0000 (+0200) Subject: [Win] Log wglSwapIntervalEXT errors X-Git-Tag: 2.0-0~165 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ed1e8b6d801aff0b93e6b9aed449beafd718964;p=platform%2Fcore%2Fcsapi%2Fopentk.git [Win] Log wglSwapIntervalEXT errors Note that we cannot use Marshal.GetLastWin32Error because we are not using regular DllImports for WGL extensions. --- diff --git a/Source/OpenTK/Platform/Windows/WinGLContext.cs b/Source/OpenTK/Platform/Windows/WinGLContext.cs index 74a5009..b7da272 100644 --- a/Source/OpenTK/Platform/Windows/WinGLContext.cs +++ b/Source/OpenTK/Platform/Windows/WinGLContext.cs @@ -331,7 +331,10 @@ namespace OpenTK.Platform.Windows { value = 1; } - Wgl.Ext.SwapInterval(value); + if (!Wgl.Ext.SwapInterval(value)) + { + Debug.Print("wglSwapIntervalEXT call failed."); + } } } }