From b08edbc3412172a7dbbc799dc0a74697023d0a4b Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 10 Mar 2008 15:54:40 +0000 Subject: [PATCH] Removed OnResize overload. --- Source/OpenTK/GLControl.cs | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/Source/OpenTK/GLControl.cs b/Source/OpenTK/GLControl.cs index 3f342efc..f8a011c9 100644 --- a/Source/OpenTK/GLControl.cs +++ b/Source/OpenTK/GLControl.cs @@ -82,33 +82,16 @@ namespace OpenTK #region --- Protected Methods --- - protected override void OnResize(EventArgs e) - { - //// Workaround Mono 1.2.4 bug where the OnHandleCreated event isn't raised at the correct time. - //if (this.Context == null) - //{ - // if (!DesignMode) - // this.Context = implementation.CreateContext(); - // else - // this.Context = new DummyGLContext(null); - - // this.window_info = implementation.WindowInfo; - // this.MakeCurrent(); - // ((IGraphicsContextInternal)this.Context).LoadAll(); - //} - base.OnResize(e); - } - /// Raises the HandleCreated event. /// Not used. protected override void OnHandleCreated(EventArgs e) { base.OnHandleCreated(e); - // On Mono 1.2.4 the Resize event is raised before this :/ - if (!DesignMode) - this.Context = implementation.CreateContext(); - else + + if (DesignMode) this.Context = new DummyGLContext(null); + else + this.Context = implementation.CreateContext(); this.window_info = implementation.WindowInfo; this.MakeCurrent();