mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-26 15:35:38 +00:00
Removed OnResize overload.
This commit is contained in:
parent
d9143c7654
commit
b08edbc341
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue