Skip to content

Commit

Permalink
Update SdlWindowing.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Perksey authored Sep 27, 2023
1 parent b343d1a commit 123c522
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Windowing/Silk.NET.Windowing.Sdl/SdlWindowing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ public static unsafe IView CreateFrom(void* handle, IGLContext? ctx = null)
/// <summary>
/// Prioritizes the SDL windowing platform over others.
/// </summary>
public static void Use() => Window.PrioritizeSdl();
public static void Use()
{
RegisterPlatform(); // may not be done by reflection on NativeAOT
Window.PrioritizeSdl();
}

/// <summary>
/// Gets a value indicating whether the given view is an SDL view.
Expand Down

0 comments on commit 123c522

Please sign in to comment.