Skip to content

libgl_EmuELEC: use LIBGL_FB=0 when SDL2 runs on kmsdrm - #351

Merged
kloptops merged 1 commit into
PortsMaster:mainfrom
worstcase-scenario:main
Oct 20, 2026
Merged

kloptops merged 1 commit into
PortsMaster:mainfrom
worstcase-scenario:main

Conversation

@worstcase-scenario

Copy link
Copy Markdown
Contributor

On EmuELEC builds where SDL2 uses the kmsdrm video driver, gl4es with LIBGL_FB=4 opens /dev/dri/card0 itself and becomes DRM master before SDL does. SDL then fails with SET_MASTER: EBUSY / page flip EACCES and the port shows a black screen (e.g. Blobby Volley 2). With LIBGL_FB=0, gl4es renders into SDL’s window. Devices without kmsdrm are unaffected.

Added a check for SDL2 kmsdrm to set LIBGL_FB.
@kloptops
kloptops merged commit 29b1d5b into PortsMaster:main Oct 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants