mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 18:15:38 +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()
|
||||
{
|
||||
|
||||
Functions.SwapBuffers(currentWindow.DeviceContext);
|
||||
if (!Functions.SwapBuffers(currentWindow.DeviceContext))
|
||||
Debug.Print("SwapBuffers failed, error: {0}", Marshal.GetLastWin32Error());
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in a new issue