projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcc2405
)
[OpenTK] Do not raise *Frame events when time = 0
author
Stefanos A.
<stapostol@gmail.com>
Wed, 8 Jan 2014 23:51:09 +0000
(
00:51
+0100)
committer
Stefanos A.
<stapostol@gmail.com>
Wed, 8 Jan 2014 23:51:09 +0000
(
00:51
+0100)
Affects issue #40
Source/OpenTK/GameWindow.cs
patch
|
blob
|
history
diff --git
a/Source/OpenTK/GameWindow.cs
b/Source/OpenTK/GameWindow.cs
index
e342923
..
8012eba
100644
(file)
--- 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);