Remove duplicate RenderFrame event (GLArea has one already).

This commit is contained in:
Jarl Gullberg 2017-09-15 12:40:21 +02:00
parent 6a40207b9f
commit e9f27ff630
No known key found for this signature in database
GPG key ID: FBB69BD7CAE095A0

View file

@ -193,22 +193,6 @@ namespace OpenTK
} }
} }
/// <summary>
/// Called when this <see cref="GLWidget"/> needs to render a frame.
/// </summary>
public event EventHandler RenderFrame;
/// <summary>
/// Invokes the <see cref="RenderFrame"/> event.
/// </summary>
protected virtual void OnRenderFrame()
{
if (RenderFrame != null)
{
RenderFrame(this, EventArgs.Empty);
}
}
/// <summary> /// <summary>
/// Called when this <see cref="GLWidget"/> is being disposed. /// Called when this <see cref="GLWidget"/> is being disposed.
/// </summary> /// </summary>
@ -255,9 +239,6 @@ namespace OpenTK
#else #else
bool result = base.OnExposeEvent(evnt); bool result = base.OnExposeEvent(evnt);
#endif #endif
OnRenderFrame();
#if !GTK3 #if !GTK3
evnt.Window.Display.Sync(); // Add Sync call to fix resize rendering problem (Jay L. T. Cornwall) - How does this affect VSync? evnt.Window.Display.Sync(); // Add Sync call to fix resize rendering problem (Jay L. T. Cornwall) - How does this affect VSync?
#endif #endif