From: Stefanos A. Date: Wed, 8 Jan 2014 23:51:09 +0000 (+0100) Subject: [OpenTK] Do not raise *Frame events when time = 0 X-Git-Tag: 2.0-0~266 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7f64945079866db5c492c405b6f3c88ec022519e;p=platform%2Fcore%2Fcsapi%2Fopentk.git [OpenTK] Do not raise *Frame events when time = 0 Affects issue #40 --- diff --git a/Source/OpenTK/GameWindow.cs b/Source/OpenTK/GameWindow.cs index e342923..8012eba 100644 --- a/Source/OpenTK/GameWindow.cs +++ b/Source/OpenTK/GameWindow.cs @@ -469,7 +469,7 @@ namespace OpenTK bool RaiseUpdateFrame(double time) { - if (time >= TargetUpdatePeriod) + if (time > 0 && time >= TargetUpdatePeriod) { update_args.Time = time; OnUpdateFrameInternal(update_args); @@ -481,7 +481,7 @@ namespace OpenTK bool RaiseRenderFrame(double time) { - if (time >= TargetRenderPeriod) + if (time > 0 && time >= TargetRenderPeriod) { render_args.Time = time; OnRenderFrameInternal(render_args);