Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[Win] Log wglSwapIntervalEXT errors

Note that we cannot use Marshal.GetLastWin32Error because we are not
using regular DllImports for WGL extensions.
  • Loading branch information...
commit 0ed1e8b6d801aff0b93e6b9aed449beafd718964 1 parent f2dc40a
@thefiddler thefiddler authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 Source/OpenTK/Platform/Windows/WinGLContext.cs
View
5 Source/OpenTK/Platform/Windows/WinGLContext.cs
@@ -331,7 +331,10 @@ public override int SwapInterval
{
value = 1;
}
- Wgl.Ext.SwapInterval(value);
+ if (!Wgl.Ext.SwapInterval(value))
+ {
+ Debug.Print("wglSwapIntervalEXT call failed.");
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.