From 917c10d54b38eaa507c60e69b08f40d94ddc5960 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Thu, 9 Aug 2007 12:08:03 +0000 Subject: [PATCH] Fixed build error in WinGLNative. --- Source/OpenTK/Platform/Windows/WinGLControl.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/OpenTK/Platform/Windows/WinGLControl.cs b/Source/OpenTK/Platform/Windows/WinGLControl.cs index c19a0ea1..5809462d 100644 --- a/Source/OpenTK/Platform/Windows/WinGLControl.cs +++ b/Source/OpenTK/Platform/Windows/WinGLControl.cs @@ -26,7 +26,13 @@ namespace OpenTK.Platform.Windows private Message msg; // Used only by the IsIdle event. #region --- Constructors --- - + + public WinGLControl(Control c, DisplayMode mode) + { + glContext = new WinGLContext(c.Handle, mode); + } + + [Obsolete] public WinGLControl(Control c, int width, int height, bool fullscreen) { glContext = new WinGLContext(