CONFIGURE: ImGui now requires freetype2

This commit is contained in:
Eugene Sandulenko 2024-05-21 21:02:29 +02:00
parent f5fa7aeb0c
commit f944132e47
No known key found for this signature in database
GPG Key ID: 014D387312D34F08

33
configure vendored
View File

@ -6688,22 +6688,27 @@ echocheck "ImGui"
if test "$_imgui" != no ; then
if test "$_opengl" = yes ; then
case $_backend in
sdl)
if test "$_sdlMajorVersionNumber" -ge 2 ; then
_imgui=yes
echo "yes"
else
if test "$_freetype2" = yes ; then
case $_backend in
sdl)
if test "$_sdlMajorVersionNumber" -ge 2 ; then
_imgui=yes
echo "yes"
else
_imgui=no
echo "no (backend unsupported)"
fi
;;
*)
# For now, only SDL supports ImGui
_imgui=no
echo "no (backend unsupported)"
fi
;;
*)
# For now, only SDL supports ImGui
_imgui=no
echo "no (backend unsupported)"
;;
esac
;;
esac
else
_imgui=no
echo "no (requires FreeType2)"
fi
else
_imgui=no
echo "no (requires OpenGL)"