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:
parent
b89f79266b
commit
95bd094404
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue