Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 95bd0944040cbaac904677fd85d59f18de640248 1 parent b89f792
@Frassle Frassle authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Source/OpenTK/Graphics/GraphicsContext.cs
View
4 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.
Something went wrong with that request. Please try again.