From 7bc9bd2c9dcabe98de8d4d0a4bd9af637bb213c3 Mon Sep 17 00:00:00 2001 From: worstcase-scenario <83265453+worstcase-scenario@users.noreply.github.com> Date: Wed, 21 Oct 2026 00:25:41 +0200 Subject: [PATCH] Update LIBGL_FB setting for SDL2 kmsdrm Added a check for SDL2 kmsdrm to set LIBGL_FB. --- PortMaster/libgl_EmuELEC.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PortMaster/libgl_EmuELEC.txt b/PortMaster/libgl_EmuELEC.txt index ff06759c..92745411 100644 --- a/PortMaster/libgl_EmuELEC.txt +++ b/PortMaster/libgl_EmuELEC.txt @@ -17,6 +17,11 @@ if [ ! -e "/dev/dri/card0" ]; then export LIBGL_FB=2 fi +# SDL2 kmsdrm owns the display, gl4es must not open its own gbm output +if [ "${SDL_VIDEODRIVER}" = "kmsdrm" ]; then + export LIBGL_FB=0 +fi + if [ -d "$PWD/gl4es.$DEVICE_ARCH" ]; then export LD_LIBRARY_PATH="$PWD/gl4es.$DEVICE_ARCH:$LD_LIBRARY_PATH" elif [ -d "$PWD/gl4es" ]; then