OpenGL broken in classic core20 snap on 22.04

You are trying to load the mesa drivers from the host into a core20 based process. That only works by chance. (E.g. when running on 20.04)

One solution is to include the 20.04 mesa stack and point LIBGL_DRIVERS_PATH, LIBVA_DRIVERS_PATH and __EGL_VENDOR_LIBRARY_DIRS to it. There’s an example including this here: