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
like running glxgears and it doesn't run anything or show any error?
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
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...
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
.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.
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.How?
I don't know how, it just works.
That env just means you are running on llvmpipe
Are you using zink to run opengl programs?
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)