25 lines
897 B
Diff
25 lines
897 B
Diff
From 2c69afa1187f55c2634c67c3ece47d89fd1b4f67 Mon Sep 17 00:00:00 2001
|
|
From: Christoph Oelckers <coelckers@users.noreply.github.com>
|
|
Date: Tue, 31 May 2022 11:00:10 +0200
|
|
Subject: [PATCH] - fixed SDL version check
|
|
|
|
---
|
|
src/common/platform/posix/sdl/sdlglvideo.cpp | 4 +---
|
|
1 file changed, 1 insertion(+), 3 deletions(-)
|
|
|
|
diff --git a/src/common/platform/posix/sdl/sdlglvideo.cpp b/src/common/platform/posix/sdl/sdlglvideo.cpp
|
|
index a5f7e6b527e..335dc620657 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.");
|
|
}
|