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:
b89f792
)
Disable Obsolete warning.
author
Fraser Waters
<frassle@gmail.com>
Sat, 22 Feb 2014 21:01:19 +0000
(21:01 +0000)
committer
Fraser Waters
<frassle@gmail.com>
Tue, 25 Feb 2014 10:31:17 +0000
(10:31 +0000)
IGraphicsContext.VSync property is obsolete, but we have to call it in
the GraphicsContext.VSync implementation, so disable the obsolete
warning for this one use.
Source/OpenTK/Graphics/GraphicsContext.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/Graphics/GraphicsContext.cs
b/Source/OpenTK/Graphics/GraphicsContext.cs
index
05e33dc
..
9069ebd
100644
(file)
--- a/
Source/OpenTK/Graphics/GraphicsContext.cs
+++ b/
Source/OpenTK/Graphics/GraphicsContext.cs
@@
-507,8
+507,10
@@
namespace OpenTK.Graphics
[Obsolete("Use SwapInterval property instead.")]
public bool VSync
{
+#pragma warning disable 0612, 0618 // CS0612/CS0618: 'member' is obsolete
get { return implementation.VSync; }
- set { implementation.VSync = value; }
+ set { implementation.VSync = value; }
+#pragma warning restore 0612, 0618
}
/// <summary>