0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-02-22 23:57:09 +00:00
termux-packages/x11-packages/luanti/0004-disable-sdl2.patch
2025-02-15 12:19:10 +08:00

16 lines
642 B
Diff

This is https://github.com/luanti-org/luanti/pull/15704
(Luanti's current choice to use Irrlicht only without SDL2, until a future release)
In Termux this is necessary to enable EGL support for improved driver compatibility
and performance, but if Luanti migrates to SDL2 in the future, at that time, it might
be possible to enable EGL support in SDL2 for Luanti on Termux also.
--- a/irr/src/CMakeLists.txt
+++ b/irr/src/CMakeLists.txt
@@ -1,6 +1,6 @@
# When enabling SDL2 by default on macOS, don't forget to change
# "NSHighResolutionCapable" to true in "Info.plist".
-if(ANDROID)
+if(THIS_IS_OPTIONAL)
set(DEFAULT_SDL2 ON)
endif()