aboutsummaryrefslogtreecommitdiff
path: root/tools/Linux
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2023-10-10 19:50:10 -0700
committerLukas Rusak <lorusak@gmail.com>2023-10-15 19:26:31 -0700
commit742ad8f252548ebbed195ee2cd0e1dd33aa51b47 (patch)
treecf1a1f812f697b81bd12ad24181c8b9764e9ce93 /tools/Linux
parente85777502d12180a4f45cc137f7991b1157b178d (diff)
kodi.sh.in: add wrapper for deprecated KODI_GL_INTERFACE env variable
Signed-off-by: Lukas Rusak <lorusak@gmail.com>
Diffstat (limited to 'tools/Linux')
-rw-r--r--tools/Linux/kodi.sh.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/Linux/kodi.sh.in b/tools/Linux/kodi.sh.in
index 5dc1dd5260..d68e23516d 100644
--- a/tools/Linux/kodi.sh.in
+++ b/tools/Linux/kodi.sh.in
@@ -189,6 +189,20 @@ if [ -n "${KODI_AE_SINK}" ]; then
fi
fi
+if [ -n "${KODI_GL_INTERFACE}" ]; then
+
+ echo "KODI_GL_INTERFACE env variable is deprecated and will be removed in the future."
+ echo "Use the --gl-interface command line switch instead."
+
+ if [ "${KODI_GL_INTERFACE}" = "GLX" ]; then
+ ENV_ARGS="--gl-interface=glx"
+ elif [ "${KODI_GL_INTERFACE}" = "EGL" ]; then
+ ENV_ARGS="--gl-interface=egl"
+ elif [ "${KODI_GL_INTERFACE}" = "EGL_PB" ]; then
+ ENV_ARGS="--gl-interface=egl-pb"
+ fi
+fi
+
LOOP=1
while [ $(( $LOOP )) = "1" ]
do