Skip to content

Commit

Permalink
Merge pull request #6541 from peppy/sdl-3-is-a-never
Browse files Browse the repository at this point in the history
Disable SDL3 again for other desktop platforms
  • Loading branch information
bdach authored Feb 25, 2025
2 parents 2c0a54c + ee5064c commit 043fd78
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions osu.Framework/FrameworkEnvironment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@ static FrameworkEnvironment()
if (DebugUtils.IsDebugBuild)
AllowInsecureRequests = parseBool(Environment.GetEnvironmentVariable("OSU_INSECURE_REQUESTS")) ?? false;

// Windows excluded for now due to https://github.com/ppy/osu/issues/28223#issuecomment-2664711237.
bool sdl3DefaultsOn = RuntimeInfo.IsUnix;

UseSDL3 = RuntimeInfo.IsMobile || (parseBool(Environment.GetEnvironmentVariable("OSU_SDL3")) ?? sdl3DefaultsOn);
// Desktop has many issues, see https://github.com/ppy/osu-framework/issues/6540.
UseSDL3 = RuntimeInfo.IsMobile || (parseBool(Environment.GetEnvironmentVariable("OSU_SDL3")) ?? false);
}

private static bool? parseBool(string? value)
Expand Down

0 comments on commit 043fd78

Please sign in to comment.