Removed OnResize overload.

This commit is contained in:
the_fiddler 2008-03-10 15:54:40 +00:00
parent d9143c7654
commit b08edbc341

View file

@ -82,33 +82,16 @@ namespace OpenTK
#region --- Protected Methods --- #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);
}
/// <summary>Raises the HandleCreated event.</summary> /// <summary>Raises the HandleCreated event.</summary>
/// <param name="e">Not used.</param> /// <param name="e">Not used.</param>
protected override void OnHandleCreated(EventArgs e) protected override void OnHandleCreated(EventArgs e)
{ {
base.OnHandleCreated(e); base.OnHandleCreated(e);
// On Mono 1.2.4 the Resize event is raised before this :/
if (!DesignMode) if (DesignMode)
this.Context = implementation.CreateContext();
else
this.Context = new DummyGLContext(null); this.Context = new DummyGLContext(null);
else
this.Context = implementation.CreateContext();
this.window_info = implementation.WindowInfo; this.window_info = implementation.WindowInfo;
this.MakeCurrent(); this.MakeCurrent();