diff --git a/src/common/platform/posix/sdl/sdlglvideo.cpp b/src/common/platform/posix/sdl/sdlglvideo.cpp index a5f7e6b52..335dc6206 100644 --- a/src/common/platform/posix/sdl/sdlglvideo.cpp +++ b/src/common/platform/posix/sdl/sdlglvideo.cpp @@ -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."); }