Disable Obsolete warning.
authorFraser Waters <frassle@gmail.com>
Sat, 22 Feb 2014 21:01:19 +0000 (21:01 +0000)
committerFraser 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

index 05e33dc..9069ebd 100644 (file)
@@ -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>