mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- fixed SDL version check
This commit is contained in:
parent
748156c846
commit
2c69afa118
1 changed files with 1 additions and 3 deletions
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue