OpenGL/ES-Related program Doesn't Work Anymore in Termux

I just found this weird problem where OpenGL/ES-related program such as glxinfo/glxgears (from mesa-demos), and GLFW seems doesn't respond, what i mean by that, when i run program like glxinfo/glxgears, nothings happened, this also happened on my GLFW + GLAD + OpenGL program in C++, where it tells me that GLFW Successfully Initialized (via glfwInit()), but Window is not created, any idea why? i use Openbox as the Window Manager (i guess it's helpful to include the WM i use). and Latest Build of Termux App and Latest Nightly Build of Termux:X11.
10 Replies
FZXO
FZXO2w ago
like running glxgears and it doesn't run anything or show any error?
RandomGuy
RandomGuyOP2w ago
yep, it doesn't even show error, it just run and, no window appears also, (unrelated, but maybe helpful to be fixed ASAP) for some reason, when trying to run lxappearance, nothings happened, no Window, No logs, nothings, i use qterminal (maybe that's helpful to include) i guess i make GitHub issue for this
FalconSN
FalconSN2w ago
GitHub
[Bug]: Possible regression dbus 1.16.2 · Issue #23981 · termux/te...
Problem description After updating packages on March 23, when I start Xfce session (native) through x11 app, I get a blank screen. After further research, other users tried rolling back dbus packag...
RandomGuy
RandomGuyOP2w ago
When i try to follow one of the Users Advice on that GH Issue by export LIBGL_ALWAYS_SOFTWARE=1, it works for lxappearance and my OpenGL Program (other program may also work), so this issue may related to OpenGL (libGL.so), idk if it my OpenGL ES Phone GPU or Termux X11 (App) itself it's probably because of Termux X11 (App), because with VNC, it works without export LIBGL_ALWAYS_SOFTWARE=1.
FalconSN
FalconSN2w ago
It's caused by mesa, see the last comment in issue. There was a PR that should've fixed it, but I don't know if it's updated in repo.
Biswa96
Biswa962w ago
I can open lxappearance in termux-x11 without export LIBGL_ALWAYS_SOFTWARE=1. though, my device is old and it only uses llvmpipe i.e. software rendering.
RandomGuy
RandomGuyOP2w ago
How?
Biswa96
Biswa962w ago
I don't know how, it just works.
FZXO
FZXO2w ago
That env just means you are running on llvmpipe Are you using zink to run opengl programs?
RandomGuy
RandomGuyOP2w ago
No i don't use Zink Also, for some reason, glmark2 still think i use virpipe (via virgl_test_server_android) even with LIBGL_ALWAYS_SOFTWARE to 1, and i got decent performance with virgl_test_server_android (from ~12 to ~43 score)

Did you find this page helpful?