Vsync does work now
This commit is contained in:
committed by
Cameron Taylor
parent
6e2a077d6b
commit
db00feff93
@@ -160,13 +160,8 @@ class WindowUtil
|
||||
|
||||
public static function setVSyncMode(value:lime.ui.WindowVSyncMode):Void
|
||||
{
|
||||
// Apply the new value.
|
||||
var success = FlxG.stage.application.window.setVSyncMode(value);
|
||||
FlxG.stage.application.window.setVSyncMode(value);
|
||||
|
||||
if (!success)
|
||||
{
|
||||
// Maybe throw an error?
|
||||
FlxG.stage.application.window.setVSyncMode(lime.ui.WindowVSyncMode.OFF);
|
||||
}
|
||||
// TODO: Add an error check here, simply doing !result (as 0 is success), doesn't work for the check.
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user