- fixed SDL version check

This commit is contained in:
Christoph Oelckers 2022-05-31 11:00:10 +02:00
parent 748156c846
commit 2c69afa118

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