From caf9a991b40f16019943b8ba9f420c8075f77b00 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Fri, 11 Jan 2008 20:36:43 +0000 Subject: [PATCH] Cast to obtain Context.Mode (which is an internal interface now). --- Source/OpenTK/GLControl.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/GLControl.cs b/Source/OpenTK/GLControl.cs index 32985bc6..3bdd6052 100644 --- a/Source/OpenTK/GLControl.cs +++ b/Source/OpenTK/GLControl.cs @@ -141,6 +141,8 @@ namespace OpenTK #region public DisplayMode Mode + // TODO: Remove for 0.3.15 + /// /// Gets the DisplayMode of the GLContext attached to this GLControl. /// @@ -149,7 +151,7 @@ namespace OpenTK /// public DisplayMode Mode { - get { return Context.Mode; } + get { return (Context as IGLContextInternal).Mode; } } #endregion