Add debug output to SwapBuffers.

This commit is contained in:
the_fiddler 2008-11-26 21:55:43 +00:00
parent 73cb7a5dd2
commit d9eeb2bd90

View file

@ -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