projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2dc40a
)
[Win] Log wglSwapIntervalEXT errors
author
thefiddler
<stapostol@gmail.com>
Tue, 29 Apr 2014 06:48:49 +0000
(08:48 +0200)
committer
thefiddler
<stapostol@gmail.com>
Tue, 29 Apr 2014 06:48:49 +0000
(08:48 +0200)
Note that we cannot use Marshal.GetLastWin32Error because we are not
using regular DllImports for WGL extensions.
Source/OpenTK/Platform/Windows/WinGLContext.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Platform/Windows/WinGLContext.cs
b/Source/OpenTK/Platform/Windows/WinGLContext.cs
index
74a5009
..
b7da272
100644
(file)
--- a/
Source/OpenTK/Platform/Windows/WinGLContext.cs
+++ b/
Source/OpenTK/Platform/Windows/WinGLContext.cs
@@
-331,7
+331,10
@@
namespace OpenTK.Platform.Windows
{
value = 1;
}
- Wgl.Ext.SwapInterval(value);
+ if (!Wgl.Ext.SwapInterval(value))
+ {
+ Debug.Print("wglSwapIntervalEXT call failed.");
+ }
}
}
}