gzdoom: fix sdl version check
This commit is contained in:
parent
d75d9ae2bb
commit
8dfbba44f0
|
@ -0,0 +1,24 @@
|
|||
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.");
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'gzdoom'
|
||||
pkgname=gzdoom
|
||||
version=4.7.1
|
||||
revision=1
|
||||
revision=2
|
||||
_tagdate=2021-10-20
|
||||
wrksrc="${pkgname}-g${version}"
|
||||
build_style=cmake
|
||||
|
|
Loading…
Reference in New Issue