gpu-next fix
This commit is contained in:
@@ -74,7 +74,7 @@ namespace mpvnet
|
||||
|
||||
Core.ObservePropertyDouble("window-scale", WindowScale);
|
||||
|
||||
if (!IsVulkanOrGpuNext)
|
||||
if (Core.GPUAPI != "vulkan")
|
||||
Core.ProcessCommandLine(false);
|
||||
|
||||
AppDomain.CurrentDomain.UnhandledException += (sender, e) => App.ShowException(e.ExceptionObject);
|
||||
@@ -194,8 +194,6 @@ namespace mpvnet
|
||||
|
||||
bool IsCommandPaletteVissible() => CommandPaletteHost != null && CommandPaletteHost.Visible;
|
||||
|
||||
bool IsVulkanOrGpuNext => Core.GPUAPI == "vulkan" || Core.VO == "gpu-next";
|
||||
|
||||
bool KeepSize() => App.StartSize == "session" || App.StartSize == "always";
|
||||
|
||||
bool IsMouseInOSC()
|
||||
@@ -1036,7 +1034,7 @@ namespace mpvnet
|
||||
if (WindowState == FormWindowState.Maximized)
|
||||
Core.SetPropertyBool("window-maximized", true);
|
||||
|
||||
if (IsVulkanOrGpuNext)
|
||||
if (Core.GPUAPI == "vulkan")
|
||||
Core.ProcessCommandLine(false);
|
||||
|
||||
WPF.Init();
|
||||
|
||||
Reference in New Issue
Block a user