diff --git a/Source/OpenTK/Platform/Windows/WinGLContext.cs b/Source/OpenTK/Platform/Windows/WinGLContext.cs index c08cda77..b0323fd2 100644 --- a/Source/OpenTK/Platform/Windows/WinGLContext.cs +++ b/Source/OpenTK/Platform/Windows/WinGLContext.cs @@ -138,8 +138,8 @@ namespace OpenTK.Platform.Windows public void SwapBuffers() { - - Functions.SwapBuffers(currentWindow.DeviceContext); + if (!Functions.SwapBuffers(currentWindow.DeviceContext)) + Debug.Print("SwapBuffers failed, error: {0}", Marshal.GetLastWin32Error()); } #endregion