aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorfuzzard <fuzzard@users.noreply.github.com>2023-10-17 11:10:54 +1000
committerGitHub <noreply@github.com>2023-10-17 11:10:54 +1000
commit355521021a5a4c7a4efdc6217207b2e02ec00872 (patch)
tree1fe8417999b258d51107b6e7d2d15cf2bb101781 /tools
parent5cf5e951f04acee506c02470245e6202a228cdbc (diff)
parent742ad8f252548ebbed195ee2cd0e1dd33aa51b47 (diff)
Merge pull request #23907 from lrusak/glx-app-param
[linux] add --gl-interface=<interface> switch
Diffstat (limited to 'tools')
-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