[Win] Log wglSwapIntervalEXT errors

Note that we cannot use Marshal.GetLastWin32Error because we are not
using regular DllImports for WGL extensions.
This commit is contained in:
thefiddler 2014-04-29 08:48:49 +02:00
parent f2dc40abdd
commit 0ed1e8b6d8

View file

@ -331,7 +331,10 @@ namespace OpenTK.Platform.Windows
{
value = 1;
}
Wgl.Ext.SwapInterval(value);
if (!Wgl.Ext.SwapInterval(value))
{
Debug.Print("wglSwapIntervalEXT call failed.");
}
}
}
}