Vsync does work now

This commit is contained in:
kade-github
2025-04-14 21:42:24 -04:00
committed by Cameron Taylor
parent 6e2a077d6b
commit db00feff93
+2 -7
View File
@@ -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.
}
}