mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-03 15:40:59 +00:00
Merge branch 'issue69' into develop
This commit is contained in:
commit
f5a4a4bd96
|
@ -400,8 +400,14 @@ namespace OpenTK
|
||||||
throw new ArgumentOutOfRangeException("frames_per_second", frames_per_second,
|
throw new ArgumentOutOfRangeException("frames_per_second", frames_per_second,
|
||||||
"Parameter should be inside the range [0.0, 200.0]");
|
"Parameter should be inside the range [0.0, 200.0]");
|
||||||
|
|
||||||
TargetUpdateFrequency = updates_per_second;
|
if (updates_per_second != 0)
|
||||||
TargetRenderFrequency = frames_per_second;
|
{
|
||||||
|
TargetUpdateFrequency = updates_per_second;
|
||||||
|
}
|
||||||
|
if (frames_per_second != 0)
|
||||||
|
{
|
||||||
|
TargetRenderFrequency = frames_per_second;
|
||||||
|
}
|
||||||
|
|
||||||
Visible = true; // Make sure the GameWindow is visible.
|
Visible = true; // Make sure the GameWindow is visible.
|
||||||
OnLoadInternal(EventArgs.Empty);
|
OnLoadInternal(EventArgs.Empty);
|
||||||
|
|
Loading…
Reference in a new issue