[OpenTK] Do not raise *Frame events when time = 0

Affects issue #40
This commit is contained in:
Stefanos A. 2014-01-09 00:51:09 +01:00
parent bcc2405002
commit 7f64945079

View file

@ -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);