diff --git a/src/Windowing/Silk.NET.Windowing.Sdl/SdlWindowing.cs b/src/Windowing/Silk.NET.Windowing.Sdl/SdlWindowing.cs index ec4c39c71c..d80f5b99bc 100644 --- a/src/Windowing/Silk.NET.Windowing.Sdl/SdlWindowing.cs +++ b/src/Windowing/Silk.NET.Windowing.Sdl/SdlWindowing.cs @@ -43,7 +43,11 @@ public static unsafe IView CreateFrom(void* handle, IGLContext? ctx = null) /// /// Prioritizes the SDL windowing platform over others. /// - public static void Use() => Window.PrioritizeSdl(); + public static void Use() + { + RegisterPlatform(); // may not be done by reflection on NativeAOT + Window.PrioritizeSdl(); + } /// /// Gets a value indicating whether the given view is an SDL view.