taken from https://github.com/orowith2os/mesa-asahi-flatpak/pull/43
for EGL I still need export __EGL_VENDOR_LIBRARY_DIRS=/usr/lib/aarch64-linux-gnu/GL/asahi/share/glvnd/egl_vendor.d though. Testing with io.github.arunsivaramanneo.GPUViewer from flathub
export __EGL_VENDOR_LIBRARY_DIRS=/usr/lib/aarch64-linux-gnu/GL/asahi/share/glvnd/egl_vendor.d
io.github.arunsivaramanneo.GPUViewer
Weird, I didn't need to do this and GPUViewer did work (though a little broken because no Vulkan triggers a Python exception, I think).
Pull-Request has been merged by marcan
taken from https://github.com/orowith2os/mesa-asahi-flatpak/pull/43