mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2026-08-18 19:37:45 +00:00
Fix Graphics Backend value switching to OpenGL when selecting KosmicKrisp
This commit is contained in:
parent
eddb8edaeb
commit
eb0c97b4c4
5 changed files with 8 additions and 7 deletions
|
|
@ -16306,7 +16306,7 @@
|
|||
"ar_SA": "",
|
||||
"de_DE": "",
|
||||
"el_GR": "",
|
||||
"en_US": "Translation Layer:",
|
||||
"en_US": "Translation Layer (Vulkan):",
|
||||
"es_ES": "",
|
||||
"fr_FR": "",
|
||||
"he_IL": "",
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ namespace Ryujinx.Headless
|
|||
(instance, vk) => new SurfaceKHR((ulong)vulkanWindow.CreateWindowSurface(instance.Handle)),
|
||||
VulkanWindow.GetRequiredInstanceExtensions,
|
||||
preferredGpuId,
|
||||
TranslationLayer.MoltenVK);
|
||||
options.TranslationLayer);
|
||||
}
|
||||
|
||||
return new OpenGLRenderer();
|
||||
|
|
|
|||
|
|
@ -15,7 +15,6 @@ using Ryujinx.Cpu;
|
|||
using Ryujinx.Graphics.GAL;
|
||||
using Ryujinx.Graphics.Gpu;
|
||||
using Ryujinx.Graphics.Gpu.Shader;
|
||||
using Ryujinx.Graphics.Vulkan.MoltenVK;
|
||||
using Ryujinx.HLE;
|
||||
using Ryujinx.HLE.FileSystem;
|
||||
using Ryujinx.HLE.HOS;
|
||||
|
|
|
|||
|
|
@ -171,6 +171,8 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
public bool IsOpenGLAvailable => !OperatingSystem.IsMacOS();
|
||||
|
||||
public bool IsKosmicKrispAvailable => OperatingSystem.IsMacOSVersionAtLeast(15);
|
||||
|
||||
public bool IsMacOS => OperatingSystem.IsMacOS();
|
||||
|
||||
public bool EnableDiscordIntegration { get; set; }
|
||||
public bool ShowConfirmExit { get; set; }
|
||||
|
|
@ -362,7 +364,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||
get;
|
||||
set
|
||||
{
|
||||
field = value;
|
||||
field = IsMacOS ? 0 : value;
|
||||
OnPropertyChanged();
|
||||
OnPropertyChanged(nameof(IsVulkanSelected));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@
|
|||
Spacing="10">
|
||||
<TextBlock Classes="h1" Text="{ext:Locale SettingsTabGraphicsAPI}" />
|
||||
<StackPanel Margin="10,0,0,0" Orientation="Vertical" Spacing="10">
|
||||
<StackPanel Orientation="Horizontal" IsVisible="{Binding IsOpenGLAvailable}">
|
||||
<StackPanel Orientation="Horizontal" IsVisible="{Binding !IsMacOS}">
|
||||
<TextBlock VerticalAlignment="Center"
|
||||
ToolTip.Tip="{ext:Locale SettingsTabGraphicsBackendTooltip}"
|
||||
Text="{ext:Locale SettingsTabGraphicsBackend}"
|
||||
|
|
@ -45,8 +45,7 @@
|
|||
Content="OpenGL" />
|
||||
</ComboBox>
|
||||
</StackPanel>
|
||||
<StackPanel Orientation="Horizontal"
|
||||
IsVisible="{Binding IsKosmicKrispAvailable}">
|
||||
<StackPanel Orientation="Horizontal" IsVisible="{Binding IsMacOS}">
|
||||
<TextBlock VerticalAlignment="Center"
|
||||
ToolTip.Tip="{ext:Locale SettingsTabTranslationLayerTooltip}"
|
||||
Text="{ext:Locale SettingsTabTranslationLayer}"
|
||||
|
|
@ -58,6 +57,7 @@
|
|||
<ComboBoxItem
|
||||
Content="MoltenVK" />
|
||||
<ComboBoxItem
|
||||
IsEnabled="{Binding IsKosmicKrispAvailable}"
|
||||
Content="KosmicKrisp" />
|
||||
</ComboBox>
|
||||
</StackPanel>
|
||||
|
|
|
|||
Loading…
Reference in a new issue