mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 16:52:55 +08:00
Limit renderers to those available for the current platform
This commit is contained in:
parent
956fabb445
commit
aabe86dc26
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Configuration;
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -27,6 +28,7 @@ namespace osu.Game.Overlays.Settings.Sections.Graphics
|
|||||||
{
|
{
|
||||||
LabelText = GraphicsSettingsStrings.Renderer,
|
LabelText = GraphicsSettingsStrings.Renderer,
|
||||||
Current = renderer,
|
Current = renderer,
|
||||||
|
Items = host.GetPreferredRenderersForCurrentPlatform().OrderBy(t => t),
|
||||||
Keywords = new[] { @"compatibility", @"directx" },
|
Keywords = new[] { @"compatibility", @"directx" },
|
||||||
},
|
},
|
||||||
// TODO: this needs to be a custom dropdown at some point
|
// TODO: this needs to be a custom dropdown at some point
|
||||||
|
Loading…
Reference in New Issue
Block a user