diff --git a/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs b/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs index 7f365731b4..6d0efe276d 100644 --- a/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs +++ b/OpenRA.Platforms.Default/Sdl2PlatformWindow.cs @@ -168,7 +168,7 @@ namespace OpenRA.Platforms.Default Log.Write("graphics", $"SDL initialisation failed: {SDL.SDL_GetError()}"); SetSDLAttributes(profile); - Console.WriteLine($"Using SDL 2 with OpenGL ({profile}) renderer"); + Console.WriteLine($"Using SDL {GetSDLVersion()} with OpenGL ({profile}) renderer"); if (videoDisplay < 0 || videoDisplay >= DisplayCount) videoDisplay = 0; @@ -525,6 +525,12 @@ namespace OpenRA.Platforms.Default } } + static string GetSDLVersion() + { + SDL.SDL_GetVersion(out var version); + return version.major + "." + version.minor + "." + version.patch; + } + static void SetSDLAttributes(GLProfile profile) { SDL.SDL_GL_ResetAttributes();