IOS- fixed crash on first tick
authorTzach Shabtay <tzachshabtay@gmail.com>
Mon, 20 Mar 2017 03:47:23 +0000 (23:47 -0400)
committerTzach Shabtay <tzachshabtay@gmail.com>
Mon, 20 Mar 2017 03:49:09 +0000 (23:49 -0400)
commit2b15ae37005e64a254efe47d1d4a8a34a6e26b2b
tree36d9eae255e15ec80ae5eee1d6f244a766e44598
parentfe9e300e094d8682746b231016fd8eca2929b628
IOS- fixed crash on first tick

FrameEventArgs throws an exception when setting the Time to a value <=
0. With that knowledge, both the Android and the IOS implementations
had a bug when setting the time.
On IOS, that bug would cause a crash on the first tick, as the first
tick would always set to 0.
On Android the bug was probably harmless but there was a redundant
check there (and also removed the unneeded allocation that was there on
every tick).
src/OpenTK/Platform/Android/AndroidGameView.cs
src/OpenTK/Platform/iPhoneOS/iPhoneOSGameView.cs