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.
This commit is contained in:
Fraser Waters 2014-02-22 21:01:19 +00:00
parent b89f79266b
commit 95bd094404

View 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>