From e9f27ff6301e48a417598068c7fb5baa2cea21ed Mon Sep 17 00:00:00 2001 From: Jarl Gullberg Date: Fri, 15 Sep 2017 12:40:21 +0200 Subject: [PATCH] Remove duplicate RenderFrame event (GLArea has one already). --- src/OpenTK.GLWidget/GLWidget.cs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/OpenTK.GLWidget/GLWidget.cs b/src/OpenTK.GLWidget/GLWidget.cs index 2bc1dd9b..079541f4 100644 --- a/src/OpenTK.GLWidget/GLWidget.cs +++ b/src/OpenTK.GLWidget/GLWidget.cs @@ -193,22 +193,6 @@ namespace OpenTK } } - /// - /// Called when this needs to render a frame. - /// - public event EventHandler RenderFrame; - - /// - /// Invokes the event. - /// - protected virtual void OnRenderFrame() - { - if (RenderFrame != null) - { - RenderFrame(this, EventArgs.Empty); - } - } - /// /// Called when this is being disposed. /// @@ -255,9 +239,6 @@ namespace OpenTK #else bool result = base.OnExposeEvent(evnt); #endif - - OnRenderFrame(); - #if !GTK3 evnt.Window.Display.Sync(); // Add Sync call to fix resize rendering problem (Jay L. T. Cornwall) - How does this affect VSync? #endif