Add debug output to SwapBuffers.
This commit is contained in:
parent
73cb7a5dd2
commit
d9eeb2bd90
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue