- fixed SDL version check

This commit is contained in:
Christoph Oelckers 2022-05-31 11:00:10 +02:00
parent 748156c846
commit 2c69afa118
1 changed files with 1 additions and 3 deletions

View File

@ -394,9 +394,7 @@ SDLVideo::SDLVideo ()
}
// Fail gracefully if we somehow reach here after linking against a SDL2 library older than 2.0.6.
SDL_version sdlver;
SDL_GetVersion(&sdlver);
if (!(sdlver.patch >= 6))
if (!SDL_VERSION_ATLEAST(2, 0, 6))
{
I_FatalError("Only SDL 2.0.6 or later is supported.");
}