mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-21 00:07:50 +00:00
Add debug output to SwapBuffers.
This commit is contained in:
parent
73cb7a5dd2
commit
d9eeb2bd90
|
@ -138,8 +138,8 @@ namespace OpenTK.Platform.Windows
|
||||||
|
|
||||||
public void SwapBuffers()
|
public void SwapBuffers()
|
||||||
{
|
{
|
||||||
|
if (!Functions.SwapBuffers(currentWindow.DeviceContext))
|
||||||
Functions.SwapBuffers(currentWindow.DeviceContext);
|
Debug.Print("SwapBuffers failed, error: {0}", Marshal.GetLastWin32Error());
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue