Skip to content

Commit 4e5df93

Browse files
committed
Enable sdl3 on linux / macOS by default
1 parent 2f57a59 commit 4e5df93

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

osu.Framework/FrameworkEnvironment.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ static FrameworkEnvironment()
5353
if (DebugUtils.IsDebugBuild)
5454
AllowInsecureRequests = parseBool(Environment.GetEnvironmentVariable("OSU_INSECURE_REQUESTS")) ?? false;
5555

56-
UseSDL3 = RuntimeInfo.IsMobile || (parseBool(Environment.GetEnvironmentVariable("OSU_SDL3")) ?? false);
56+
// Windows excluded for now due to https://github.com/ppy/osu/issues/28223#issuecomment-2664711237.
57+
bool sdl3DefaultsOn = RuntimeInfo.IsUnix;
58+
59+
UseSDL3 = RuntimeInfo.IsMobile || (parseBool(Environment.GetEnvironmentVariable("OSU_SDL3")) ?? sdl3DefaultsOn);
5760
}
5861

5962
private static bool? parseBool(string? value)

0 commit comments

Comments
 (0)