mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 18:15:38 +00:00
W03_Extensions now uses the Application.Idle event to load extensions instead of the OnLoad event. Fixes flickering problems.
This commit is contained in:
parent
8cfee01131
commit
edbdadf34b
|
@ -37,11 +37,13 @@ namespace Examples.WinForms
|
|||
glClass = assembly.GetType("OpenTK.OpenGL.GL");
|
||||
delegatesClass = glClass.GetNestedType("Delegates", BindingFlags.Static | BindingFlags.NonPublic);
|
||||
importsClass = glClass.GetNestedType("Imports", BindingFlags.Static | BindingFlags.NonPublic);
|
||||
|
||||
Application.Idle += StartAsync;
|
||||
}
|
||||
|
||||
protected override void OnLoad(EventArgs e)
|
||||
void StartAsync(object sender, EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
Application.Idle -= StartAsync;
|
||||
|
||||
glControl.CreateContext();
|
||||
|
||||
|
|
Loading…
Reference in a new issue