From 442f3226c25f4738b0366c48f368dd98273d42cc Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Tue, 16 Jan 2024 23:43:41 +0100 Subject: [PATCH] Undefine SDL2 DirectFB video driver 1. we don't need it 2. it's dropped in SDL 3 3. it breaks compilation on Alpine and postmarketOS with SDL2 enabled (and the bug never going to get fixed on SDL2 side) Signed-off-by: David Heidelberg --- source/Irrlicht/CIrrDeviceSDL.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Irrlicht/CIrrDeviceSDL.h b/source/Irrlicht/CIrrDeviceSDL.h index 30adfdb1..1713a3b9 100644 --- a/source/Irrlicht/CIrrDeviceSDL.h +++ b/source/Irrlicht/CIrrDeviceSDL.h @@ -17,6 +17,10 @@ #endif #include +// DirectFB is removed in SDL3, thou distribution as Alpine currently ships SDL2 +// with enabled DirectFB, but requiring another fix at a top of SDL2. +// We don't need DirectFB in Irrlicht/Minetest, so simply disable it here to prevent issues. +#undef SDL_VIDEO_DRIVER_DIRECTFB #include #include