Permalink
Browse files

Disable Obsolete warning.

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.
  • Loading branch information...
1 parent b89f792 commit 95bd0944040cbaac904677fd85d59f18de640248 @Frassle Frassle committed Feb 22, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 Source/OpenTK/Graphics/GraphicsContext.cs
@@ -507,8 +507,10 @@ public bool IsDisposed
[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>

0 comments on commit 95bd094

Please sign in to comment.